docs/html/get-property.html

changeset 429
1607450065ba
parent 320
12ed560c926c
child 563
3dffe58a573f
equal deleted inserted replaced
428:b50ade8e7197 429:1607450065ba
24 <li><a href="put.html">put</a></li> 24 <li><a href="put.html">put</a></li>
25 <li><a href="mkdir.html">mkdir</a></li> 25 <li><a href="mkdir.html">mkdir</a></li>
26 <li><a href="remove.html">remove</a></li> 26 <li><a href="remove.html">remove</a></li>
27 <li><a href="copy.html">copy</a></li> 27 <li><a href="copy.html">copy</a></li>
28 <li><a href="move.html">move</a></li> 28 <li><a href="move.html">move</a></li>
29 <li><a href="export.html">export</a></li>
30 <li><a href="import.html">import</a></li>
29 <li><a href="get-property.html">get-property</a></li> 31 <li><a href="get-property.html">get-property</a></li>
30 <li><a href="set-property.html">set-property</a></li> 32 <li><a href="set-property.html">set-property</a></li>
31 <li><a href="remove-property.html">remove-property</a></li> 33 <li><a href="remove-property.html">remove-property</a></li>
32 <li><a href="lock.html">lock</a></li> 34 <li><a href="lock.html">lock</a></li>
33 <li><a href="unlock.html">unlock</a></li> 35 <li><a href="unlock.html">unlock</a></li>
34 <li><a href="info.html">info</a></li> 36 <li><a href="info.html">info</a></li>
35 <li><a href="date.html">date</a></li> 37 <li><a href="date.html">date</a></li>
36 <li><a href="add-repository.html">add-repository</a></li> 38 <li><a href="add-repository.html">add-repository</a></li>
39 <li><a href="remove-repository.html">remove-repository</a></li>
37 <li><a href="list-repositories.html">list-repositories</a></li> 40 <li><a href="list-repositories.html">list-repositories</a></li>
38 <li><a href="check-config.html">check-config</a></li> 41 <li><a href="check-config.html">check-config</a></li>
39 </ul> 42 </ul>
40 <li><a href="configuration.html">Configuration</a></li> 43 <li><a href="configuration.html">Configuration</a></li>
41 <li><a href="encryption.html">Encryption</a></li> 44 <li><a href="encryption.html">Encryption</a></li>
52 <li><a href="archive.html">archive</a></li> 55 <li><a href="archive.html">archive</a></li>
53 <li><a href="resolve-conflicts.html">resolve-conflicts</a></li> 56 <li><a href="resolve-conflicts.html">resolve-conflicts</a></li>
54 <li><a href="delete-conflicts.html">delete-conflicts</a></li> 57 <li><a href="delete-conflicts.html">delete-conflicts</a></li>
55 <li><a href="trash-info.html">trash-info</a></li> 58 <li><a href="trash-info.html">trash-info</a></li>
56 <li><a href="empty-trash.html">empty-trash</a></li> 59 <li><a href="empty-trash.html">empty-trash</a></li>
60 <li><a href="add-tag.html">add-tag</a></li>
61 <li><a href="remove-tag.html">remove-tag</a></li>
62 <li><a href="set-tags.html">set-tags</a></li>
63 <li><a href="list-tags.html">list-tags</a></li>
57 <li><a href="add-directory.html">add-directory</a></li> 64 <li><a href="add-directory.html">add-directory</a></li>
58 <li><a href="list-directories.html">list-directories</a></li> 65 <li><a href="list-directories.html">list-directories</a></li>
59 <li><a href="sync-check-config.html">check-config</a></li> 66 <li><a href="sync-check-config.html">check-config</a></li>
60 <li><a href="check-repositories.html">check-repositories</a></li> 67 <li><a href="check-repositories.html">check-repositories</a></li>
61 </ul> 68 </ul>
67 <!-- begin content --> 74 <!-- begin content -->
68 <div class="content"> 75 <div class="content">
69 <div id="header"> 76 <div id="header">
70 <h1 class="title">dav get-property</h1> 77 <h1 class="title">dav get-property</h1>
71 </div> 78 </div>
72 <p><strong><code>dav get-property [-pc] [-n &lt;uri&gt;] &lt;url&gt; &lt;property&gt;</code></strong></p> 79 <p><strong><code>dav get-property [-pcx] [-n &lt;uri&gt;] &lt;url&gt; &lt;property&gt;</code></strong></p>
73 <p>Gets a specific resource property. Every WebDAV property has a name and an XML namespace. A namespace can be specified with the <code>-n</code> option or with a prefixed name. The prefix and property name are separated by a <strong>:</strong> as usual.</p> 80 <p>Gets a specific resource property. Every WebDAV property has a name and an XML namespace. A namespace can be specified with the <code>-n</code> option or with a prefixed name. The prefix and property name are separated by a <strong>:</strong> as usual.</p>
81 <p>If the <strong><code>-x</code></strong> option is specified, a valid xml document containing the value is printed on stdout.</p>
82 <p>If the property contains xml data and the <strong><code>-x</code></strong> option is not specified, the value is printed on stderr in an xml-like format.</p>
74 <p>Example: <code>D:creationdate</code></p> 83 <p>Example: <code>D:creationdate</code></p>
75 <p><code>D</code> is the prefix, <code>creationdate</code> is the name.</p> 84 <p><code>D</code> is the prefix, <code>creationdate</code> is the name.</p>
76 <p>There are only two available prefixes by default:</p> 85 <p>There are only two available prefixes by default:</p>
77 <ol style="list-style-type: decimal"> 86 <ol style="list-style-type: decimal">
78 <li><code>D</code> for the <code>DAV:</code> namespace</li> 87 <li><code>D</code> for the <code>DAV:</code> namespace</li>
80 </ol> 89 </ol>
81 <p>To use another namespace, use the <code>-n</code> option or configure a namespace in the <a href="./configuration.html">config.xml</a> file.</p> 90 <p>To use another namespace, use the <code>-n</code> option or configure a namespace in the <a href="./configuration.html">config.xml</a> file.</p>
82 <p>If the property name has no prefix, and no namespace is specified, the default namespace <code>DAV:</code> is used.</p> 91 <p>If the property name has no prefix, and no namespace is specified, the default namespace <code>DAV:</code> is used.</p>
83 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p> 92 <p><strong><code>-p</code></strong> disable file name and path decryption if enabled</p>
84 <p><strong><code>-c</code></strong> enable file name and path decryption</p> 93 <p><strong><code>-c</code></strong> enable file name and path decryption</p>
94 <p><strong><code>-x</code></strong> prints property as xml</p>
85 <p><strong><code>-n &lt;uri&gt;</code></strong> specify property namespace</p> 95 <p><strong><code>-n &lt;uri&gt;</code></strong> specify property namespace</p>
86 <p><strong>Note:</strong> Properties are never encrypted.</p> 96 <p><strong>Note:</strong> Properties are never encrypted.</p>
97 <h3 id="example-xml-property">Example: xml property</h3>
98 <pre><code>$ dav get-property -x myserv/collection/ resourcetype
99 &lt;?xml version=&quot;1.0&quot;?&gt;
100 &lt;x0:resourcetype xmlns:x0=&quot;DAV:&quot;&gt;&lt;x0:collection /&gt;&lt;/x0:resourcetype&gt;</code></pre>
87 </div> 101 </div>
88 <!-- end content --> 102 <!-- end content -->
89 </body> 103 </body>
90 </html> 104 </html>

mercurial