docs/src/copy.md

changeset 279
f0f24da5f920
parent 266
8c44c5919691
child 282
3070d72f54af
equal deleted inserted replaced
278:c9096eb3554c 279:f0f24da5f920
7 7
8 If *url1* is a collection, all children are copied. 8 If *url1* is a collection, all children are copied.
9 9
10 If *url2* already exists, the command aborts, unless the `-O` option is specified. 10 If *url2* already exists, the command aborts, unless the `-O` option is specified.
11 11
12 The command uses a single WebDAV COPY request to duplicate the resources. It does not handle the dav encryption functionality, which means it does not modify *url2* if encryption is enabled. 12 The command uses a single WebDAV COPY request to duplicate the resources.
13 You may use file name and path decryption to copy and encrypted resource.
14 Please note that the copy will always be located at *url2*, so the top most collection name will not be disguised.
15 See [encryption][2] for more details on how encryption works.
13 16
14 **`-p`** disable file name and path decryption if enabled. This applies only to *url1* 17 **`-p`** disable file name and path decryption for *url1*
15 18
16 **`-c`** enable file name and path decryption This applies only to *url1* 19 **`-c`** enable file name and path decryption for *url1*
17 20
18 **`-O`** override the destination resource 21 **`-O`** override the destination resource
19 22
20 **`-L <lock>`** use a lock token. See [dav lock][1] 23 **`-L <lock>`** use a lock token. See [dav lock][1]
21 24
22 [1]: ./lock.html 25 [1]: ./lock.html
26 [2]: ./encryption.html
23 27
24 **Command alias:** cp 28 **Command alias:** cp

mercurial