# HG changeset patch # User Mike Becker # Date 1501923467 -7200 # Node ID f0f24da5f92084411452cb778fb0d3a93946cac5 # Parent c9096eb3554cc4b5ee4ff694032318c059bc7678 refines copy.md diff -r c9096eb3554c -r f0f24da5f920 docs/html/commands.html --- a/docs/html/commands.html Sat Aug 05 10:19:53 2017 +0200 +++ b/docs/html/commands.html Sat Aug 05 10:57:47 2017 +0200 @@ -87,7 +87,7 @@

-v enable verbose output. Internally CURLOPT_VERBOSE is set to 1 and verbose output is printed to stderr.

Most commands have the -c and -p options for enabling or disabling encryption. If encryption is not configured for a repository, but the -c option is specified, encryption/decryption is enabled. When enabled, all commands handle encrypted resource names. The -p options disables any encryption/decryption. See encryption for details.

Aliases

-

Some commands have alternate names. For example dav ls is and alias for dav list. The available aliases can be found in the documentation for the respective commands.

+

Some commands have alternate names. For example dav ls is an alias for dav list. The available aliases can be found in the documentation for the respective commands.

diff -r c9096eb3554c -r f0f24da5f920 docs/html/copy.html --- a/docs/html/copy.html Sat Aug 05 10:19:53 2017 +0200 +++ b/docs/html/copy.html Sat Aug 05 10:57:47 2017 +0200 @@ -69,9 +69,9 @@

Creates a duplicate of the resource identified by url1 at the location url2. All resource properties are copied. Currently url1 and url2 must be the same host.

If url1 is a collection, all children are copied.

If url2 already exists, the command aborts, unless the -O option is specified.

-

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.

-

-p disable file name and path decryption if enabled. This applies only to url1

-

-c enable file name and path decryption This applies only to url1

+

The command uses a single WebDAV COPY request to duplicate the resources. You may use file name and path decryption to copy and encrypted resource. Please note that the copy will always be located at url2, so the top most collection name will not be disguised. See encryption for more details on how encryption works.

+

-p disable file name and path decryption for url1

+

-c enable file name and path decryption for url1

-O override the destination resource

-L <lock> use a lock token. See dav lock

Command alias: cp

diff -r c9096eb3554c -r f0f24da5f920 docs/src/commands.md --- a/docs/src/commands.md Sat Aug 05 10:19:53 2017 +0200 +++ b/docs/src/commands.md Sat Aug 05 10:57:47 2017 +0200 @@ -52,6 +52,6 @@ Aliases ------- -Some commands have alternate names. For example `dav ls` is and alias for `dav list`. +Some commands have alternate names. For example `dav ls` is an alias for `dav list`. The available aliases can be found in the documentation for the respective commands. diff -r c9096eb3554c -r f0f24da5f920 docs/src/copy.md --- a/docs/src/copy.md Sat Aug 05 10:19:53 2017 +0200 +++ b/docs/src/copy.md Sat Aug 05 10:57:47 2017 +0200 @@ -9,16 +9,20 @@ If *url2* already exists, the command aborts, unless the `-O` option is specified. -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. +The command uses a single WebDAV COPY request to duplicate the resources. +You may use file name and path decryption to copy and encrypted resource. +Please note that the copy will always be located at *url2*, so the top most collection name will not be disguised. +See [encryption][2] for more details on how encryption works. -**`-p`** disable file name and path decryption if enabled. This applies only to *url1* +**`-p`** disable file name and path decryption for *url1* -**`-c`** enable file name and path decryption This applies only to *url1* +**`-c`** enable file name and path decryption for *url1* **`-O`** override the destination resource **`-L `** use a lock token. See [dav lock][1] [1]: ./lock.html +[2]: ./encryption.html **Command alias:** cp