65 <!-- begin content --> |
65 <!-- begin content --> |
66 <div class="content"> |
66 <div class="content"> |
67 <div id="header"> |
67 <div id="header"> |
68 <h1 class="title">dav copy</h1> |
68 <h1 class="title">dav copy</h1> |
69 </div> |
69 </div> |
70 <p><strong><code>copy [-pcO] [-L <lock>] <url1> <url2></code></strong></p> |
70 <p><strong><code>dav copy [-pcO] [-L <lock>] <url1> <url2></code></strong></p> |
71 <p>Creates a duplicate of the resource identified by <em>url1</em> at the location <em>url2</em>. All resource properties are copied. Currently <em>url1</em> and <em>url2</em> must be the same host.</p> |
71 <p>Creates a duplicate of the resource identified by <em>url1</em> at the location <em>url2</em>. All resource properties are copied. Currently <em>url1</em> and <em>url2</em> must be the same host.</p> |
72 <p>If <em>url1</em> is a collection, all children are copied.</p> |
72 <p>If <em>url1</em> is a collection, all children are copied.</p> |
73 <p>If <em>url2</em> already exists, the command aborts, unless the <code>-O</code> option is specified.</p> |
73 <p>If <em>url2</em> already exists, the command aborts, unless the <code>-O</code> option is specified.</p> |
74 <p>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 <em>url2</em>, so the top most collection name will not be disguised. See <a href="./encryption.html">encryption</a> for more details on how encryption works.</p> |
74 <p>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 <em>url2</em>, so the top most collection name will not be disguised. See <a href="./encryption.html">encryption</a> for more details on how encryption works.</p> |
75 <p><strong><code>-p</code></strong> disable file name and path decryption for <em>url1</em></p> |
75 <p><strong><code>-p</code></strong> disable file name and path decryption for <em>url1</em></p> |