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 lock</h1> |
68 <h1 class="title">dav lock</h1> |
69 </div> |
69 </div> |
70 <p><strong><code>lock [-pc] <url></code></strong></p> |
70 <p><strong><code>dav lock [-pc] <url></code></strong></p> |
71 <p>Creates a lock on the resource specified by the <em>url</em>. The lock is an exclusive write lock with infinite depth.</p> |
71 <p>Creates a lock on the resource specified by the <em>url</em>. The lock is an exclusive write lock with infinite depth.</p> |
72 <p>If the resource is successfully locked, a lock token for this resource is printed to stdout. This lock token should be saved somewhere to unlock the resource eventually.</p> |
72 <p>If the resource is successfully locked, a lock token for this resource is printed to stdout. This lock token should be saved somewhere to unlock the resource eventually.</p> |
73 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p> |
73 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p> |
74 <p><strong><code>-c</code></strong> enable file name and path decryption</p> |
74 <p><strong><code>-c</code></strong> enable file name and path decryption</p> |
75 <h3 id="example-1-lock-resource-and-use-the-lock-token">Example 1: lock resource and use the lock token</h3> |
75 <h3 id="example-1-lock-resource-and-use-the-lock-token">Example 1: lock resource and use the lock token</h3> |