subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko Čibej <>
Subject Re: MKCOL question
Date Mon, 09 Oct 2017 18:22:20 GMT
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:

> 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. ...

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

View raw message