1 ---
2 title: 'dav get-property'
3 ---
4
5 **`dav get-property [-pcx] [-n <uri>] <url> <property>`**
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.
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.
12
13 Example: `D:creationdate`
14
15 `D` is the prefix, `creationdate` is the name.
16
17 There are only two available prefixes by default:
18
19 1. `D` for the `DAV:` namespace
20 2. `idav` for `http://davutils.org/`
21
22 To use another namespace, use the `-n` option or configure a namespace in the [config.xml][1] file.
23
24 If the property name has no prefix, and no namespace is specified, the default namespace `DAV:` is used.
25
26 **`-p`** disable file name and path decryption if enabled
27
28 **`-c`** enable file name and path decryption
29
30 **`-x`** prints property as xml
31
32 **`-n <uri>`** specify property namespace
33
34 **Note:** Properties are never encrypted.
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
42 [1]: ./configuration.html
43