diff -r 94c0a938b66c -r ee9e63c437c4 docs/src/put.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/src/put.md Sun Jul 09 20:15:14 2017 +0200 @@ -0,0 +1,27 @@ +dav put +======= + +**`put [-pcR] [-k ] [-L ] `** + +Uploads a file or a directory. When uploading a file and the url points to +an existing collection, a resource inside this collection with the file's name is created. When the url points to a non-existing resource, the resource is +created. + +When uploading a directory, you need to specify the -R option. It uploads +all files in the directory to the specified url, but it does not create a +collection for the directory itself. + +**`-p`** disable file name encryption and decryption + +**`-c`** enable file name and content encryption + +**`-R`** upload directory + +**`-k `** use the specified key for encryption. The key must be configured in + the config.xml file + +**`-L `** use a lock token. See [dav lock][1] + +[1]: ./lock.html + +