docs/src/move.md

Wed, 05 Sep 2018 07:02:04 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 05 Sep 2018 07:02:04 +0200
branch
v1.2
changeset 463
84fbdc541752
parent 407
9505224d2fd2
permissions
-rw-r--r--

aes encrypter: fixes case where EVP_EncryptFinal_ex was not called at the stream end

---
title: 'dav move'
---

**`dav move [-pcO] [-L <lock>] <url> <url>`**

Moves the resource identified by *url1* to the location *url2*. Currently *url1* and *url2* must be on the same host. 

If *url2* already exists, the command aborts, unless the `-O` option is specified.

The command uses a single WebDAV MOVE request to move the resources.
You may use file name and path decryption to copy an encrypted resource.
Please note that the target location will be exactly *url2*, so the top most collection name will not be disguised.
See [encryption][2] for more details on how encryption works.

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

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

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

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

[1]: ./lock.html

**Command alias:** mv

mercurial