docs/src/rename.md

Tue, 09 Apr 2024 21:28:24 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 09 Apr 2024 21:28:24 +0200
changeset 810
baf199df500e
parent 695
7877dae0d8fe
permissions
-rw-r--r--

don't store directories with a trailing path separator in the sync db

---
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