docs/src/rename.md

Sun, 05 Jul 2020 11:47:24 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 05 Jul 2020 11:47:24 +0200
branch
feature/dav-edit
changeset 721
c401f4af44b1
parent 695
7877dae0d8fe
permissions
-rw-r--r--

adds support for option terminator '--'

also adds support for option arguments within the same cmd arg
e.g. -omyoutfile does now work

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