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