docs/src/info.md

Sun, 17 Dec 2023 14:25:34 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 17 Dec 2023 14:25:34 +0100
changeset 797
edbb20b1438d
parent 285
02d3e4b1245f
permissions
-rw-r--r--

[Makefile] fix missing rules preventing dry-runs

We have to support dry-runs, because many IDEs are using
dry-runs to collect build information.

Some rules have dependencies that expect certain files or
directories to be just present. We added respective build
rules which invoke the test program. This way, the behavior
when running make normally is exactly the same, but dry-runs
are also not failing now.

---
title: 'dav info'
---

**`dav info [-pc] <url>`**

Prints some information and lists all properties for the resource specified by *url*.

### Example 1: info of a collection

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.

	$ dav info myserv/col/
	name: col
	path: /col
	url:  https://example.com/webdav/col
	type: collection
	size: 28

	namespace: DAV:
	  creationdate: 2017-06-14T09:32:43Z
	  getetag: "1000-551e83bebc19c"
	  getlastmodified: Wed, 14 Jun 2017 09:32:43 GMT
	  supportedlock:

### Example 2: encrypted resource

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.
Read the [encryption][1] documentation to learn more about the davutils encryption feature.

	$ dav info -c myserv/crres
	name: crres
	path: /crres
	url:  https://example.com/webdav/wsIwbLxuJQTGtgiMAD1KGeaY
	type: resource
	size: 48 bytes

	namespace: DAV:
	  creationdate: 2017-07-09T16:18:09Z
	  getcontentlength: 48
	  getetag: "30-553e4cfecd170"
	  getlastmodified: Sun, 09 Jul 2017 16:18:09 GMT
	  supportedlock: 

	namespace: http://apache.org/dav/props/
	  executable: F

	namespace: http://davutils.org/
	  crypto-hash: fm4zstp/FevTs1aoUXc3+mqTmAf2Go+zQ34rSp8/ixDlGLQJXR74Je+WMl1zxZKbS/+5VwDhyZ9pT3gInsq2SA==
	  crypto-key: mykey
	  crypto-name: ZU+lZtFi3dprBz44714plYwfRnhyI/apYq46Sk/B6QU=

[1]: ./encryption.html

mercurial