docs/src/put.md

Fri, 04 Aug 2017 20:03:21 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 04 Aug 2017 20:03:21 +0200
changeset 274
5577d3eae04c
parent 265
ee9e63c437c4
child 282
3070d72f54af
permissions
-rw-r--r--

dav-sync command documentation complete

dav put
=======

**`put [-pcR] [-k <key>] [-L <lock>] <url> <file>`**

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 <key>`** use the specified key for encryption. The key must be configured in
  the config.xml file

**`-L <lock>`** use a lock token. See [dav lock][1]

[1]: ./lock.html

mercurial