docs/src/rename.md

Wed, 07 Feb 2024 17:12:59 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 07 Feb 2024 17:12:59 +0100
changeset 808
f21be698def9
parent 695
7877dae0d8fe
permissions
-rw-r--r--

add util_size_str2() func, a variation of util_size_str with more parameters

---
title: 'dav rename'
---

**`rename [-pcO] [-L <lock>] <url> <name>`**

Changes the name of a resource to *name*.

In case of unencrypted resources, this will do a MOVE-Request. On encrypted resources, this command will do a PROPPATCH-Request, changing the *crypto-name* property.

**`-p`** disable file name and path decryption for *url*

**`-c`** enable file name and path decryption for *url*

**`-O`** overwrite the destination resource

**`-L <lock>`** use a lock token. See [dav lock][1]

[1]: ./lock.html

mercurial