docs/src/info.md

changeset 282
3070d72f54af
parent 265
ee9e63c437c4
child 283
0e36bb75a732
equal deleted inserted replaced
281:ddb5e8f2a43d 282:3070d72f54af
1 dav info 1 dav info
2 ======== 2 ========
3 3
4 **`info [-pc] <url>`** 4 **`info [-pc] <url>`**
5 5
6 Prints some information and lists all properties for the resource specified by url. 6 Prints some information and lists all properties for the resource specified by *url*.
7 7
8 ### Example 1: info of a collection 8 ### Example 1: info of a collection
9 9
10 In this example *myserv* is a configured repository with the base url *https://example.com/webdav/*. Because *col* is not encrypted, the *url* is just the *path* appended to base url. 10 In this example *myserv* is a configured repository with the base url *https://example.com/webdav/*. Because the collection is not encrypted, the *url* in the info output is just the *path* appended to the base url.
11 11
12 $ dav info myserv/col/ 12 $ dav info myserv/col/
13 name: col 13 name: col
14 path: /col 14 path: /col
15 url: https://example.com/webdav/col 15 url: https://example.com/webdav/col
22 getlastmodified: Wed, 14 Jun 2017 09:32:43 GMT 22 getlastmodified: Wed, 14 Jun 2017 09:32:43 GMT
23 supportedlock: 23 supportedlock:
24 24
25 ### Example 2: encrypted resource 25 ### Example 2: encrypted resource
26 26
27 With encrypted resources, the *path* and *url* are different. The real resource name is random, but the name used by *dav* is stored in the *crypto-name* property. 27 With encrypted resources, the *url* in the info output looks different. The real resource name may be disguised, but the name used by *dav* is stored encrypted and base64 encoded in the *crypto-name* property.
28 Read the [encryption][1] documentation to learn more about the davutils encryption feature.
28 29
29 $ dav info -c myserv/crres 30 $ dav info -c myserv/crres
30 name: crres 31 name: crres
31 path: /crres 32 path: /crres
32 url: https://example.com/webdav/wsIwbLxuJQTGtgiMAD1KGeaY 33 url: https://example.com/webdav/wsIwbLxuJQTGtgiMAD1KGeaY
45 46
46 namespace: http://davutils.org/ 47 namespace: http://davutils.org/
47 crypto-hash: fm4zstp/FevTs1aoUXc3+mqTmAf2Go+zQ34rSp8/ixDlGLQJXR74Je+WMl1zxZKbS/+5VwDhyZ9pT3gInsq2SA== 48 crypto-hash: fm4zstp/FevTs1aoUXc3+mqTmAf2Go+zQ34rSp8/ixDlGLQJXR74Je+WMl1zxZKbS/+5VwDhyZ9pT3gInsq2SA==
48 crypto-key: mykey 49 crypto-key: mykey
49 crypto-name: ZU+lZtFi3dprBz44714plYwfRnhyI/apYq46Sk/B6QU= 50 crypto-name: ZU+lZtFi3dprBz44714plYwfRnhyI/apYq46Sk/B6QU=
51
52 [1]: ./encryption.html
53

mercurial