64 |
64 |
65 <!-- begin content --> |
65 <!-- begin content --> |
66 <div class="content"> |
66 <div class="content"> |
67 <h1 id="dav-lock">dav lock</h1> |
67 <h1 id="dav-lock">dav lock</h1> |
68 <p><strong><code>lock [-pc] <url></code></strong></p> |
68 <p><strong><code>lock [-pc] <url></code></strong></p> |
69 <p>Creates a lock on the resource specified by the url. The lock is an exclusive write lock with infinity depth.</p> |
69 <p>Creates a lock on the resource specified by the <em>url</em>. The lock is an exclusive write lock with infinite depth.</p> |
70 <p>If the resource is successfully locked, a lock token for this resource is printed on stdout. This lock token should be saved somewhere to unlock the resource eventually.</p> |
70 <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> |
71 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p> |
71 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p> |
72 <p><strong><code>-c</code></strong> enable file name and path decryption</p> |
72 <p><strong><code>-c</code></strong> enable file name and path decryption</p> |
73 <h3 id="example-1-lock-resource-and-use-the-lock-token">Example 1: lock resource and use the lock token</h3> |
73 <h3 id="example-1-lock-resource-and-use-the-lock-token">Example 1: lock resource and use the lock token</h3> |
74 <pre><code>$ dav lock myserv/resource |
74 <pre><code>$ dav lock myserv/resource |
75 opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 |
75 opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 |