docs/src/get-property.md

changeset 408
f71eab18ed38
parent 320
12ed560c926c
equal deleted inserted replaced
407:9505224d2fd2 408:f71eab18ed38
1 --- 1 ---
2 title: 'dav get-property' 2 title: 'dav get-property'
3 --- 3 ---
4 4
5 **`dav get-property [-pc] [-n <uri>] <url> <property>`** 5 **`dav get-property [-pcx] [-n <uri>] <url> <property>`**
6 6
7 Gets a specific resource property. Every WebDAV property has a name and an XML namespace. A namespace can be specified with the `-n` option or with a prefixed name. The prefix and property name are separated by a **:** as usual. 7 Gets a specific resource property. Every WebDAV property has a name and an XML namespace. A namespace can be specified with the `-n` option or with a prefixed name. The prefix and property name are separated by a **:** as usual.
8
9 If the **`-x`** option is specified, a valid xml document containing the value is printed on stdout.
10
11 If the property contains xml data and the **`-x`** option is not specified, the value is printed on stderr in an xml-like format.
8 12
9 Example: `D:creationdate` 13 Example: `D:creationdate`
10 14
11 `D` is the prefix, `creationdate` is the name. 15 `D` is the prefix, `creationdate` is the name.
12 16
21 25
22 **`-p`** disable file name and path decryption if enabled 26 **`-p`** disable file name and path decryption if enabled
23 27
24 **`-c`** enable file name and path decryption 28 **`-c`** enable file name and path decryption
25 29
30 **`-x`** prints property as xml
31
26 **`-n <uri>`** specify property namespace 32 **`-n <uri>`** specify property namespace
27 33
28 **Note:** Properties are never encrypted. 34 **Note:** Properties are never encrypted.
29 35
36 ### Example: xml property
37
38 $ dav get-property -x myserv/collection/ resourcetype
39 <?xml version="1.0"?>
40 <x0:resourcetype xmlns:x0="DAV:"><x0:collection /></x0:resourcetype>
41
30 [1]: ./configuration.html 42 [1]: ./configuration.html

mercurial