[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: MKCOL question

From: Branko Čibej <brane_at_apache.org>
Date: Mon, 9 Oct 2017 20:22:20 +0200

On 09.10.2017 16:36, Paul Hammant wrote:
> Hi gang,
>
> /(non subversion-client usage warning, also BDD ahead warning)/
>
> Given I have a directory /path/to/missing/directory/ that does not
> exist on the Svn server at all  
> When I want to put a file in there (say foo.mp3)
> Then I have to MKCOL path/
> And I have to MKCOL path/to/
> And I have to MKCOL path/to/missing
> And I have to MKCOL path/to/missing/directory/
> And only the can I then PUT path/to/missing/directory/foo.mp3

That is a limitation of the MKCOL method, as described here:

https://tools.ietf.org/html/rfc4918#section-9.3

> I'd love to be able to make the directories in a oner. Like Unix's
> mkdir -p option.

It's more like Unix's mkdir(2) than mkdir(1).

> Or something better still in the PUT operation, if there were extra
> header params I was not aware of.

https://tools.ietf.org/html/rfc4918#section-9.7.1 ...

The best you can do, as far as I'm aware, without violating the WebDAV
spec, is to pipeline the MKCOL and PUT requests.

-- Brane
Received on 2017-10-09 20:22:24 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.