|
1 dav put |
|
2 ======= |
|
3 |
|
4 **`put [-pcR] [-k <key>] [-L <lock>] <url> <file>`** |
|
5 |
|
6 Uploads a file or a directory. When uploading a file and the url points to |
|
7 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 |
|
8 created. |
|
9 |
|
10 When uploading a directory, you need to specify the -R option. It uploads |
|
11 all files in the directory to the specified url, but it does not create a |
|
12 collection for the directory itself. |
|
13 |
|
14 **`-p`** disable file name encryption and decryption |
|
15 |
|
16 **`-c`** enable file name and content encryption |
|
17 |
|
18 **`-R`** upload directory |
|
19 |
|
20 **`-k <key>`** use the specified key for encryption. The key must be configured in |
|
21 the config.xml file |
|
22 |
|
23 **`-L <lock>`** use a lock token. See [dav lock][1] |
|
24 |
|
25 [1]: ./lock.html |
|
26 |
|
27 |