docs/src/move.md

Thu, 03 Aug 2017 10:37:52 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 03 Aug 2017 10:37:52 +0200
changeset 267
171498cb2137
parent 266
8c44c5919691
child 282
3070d72f54af
permissions
-rw-r--r--

some mingw fixes

fflush after printf's in assistant.c
avoid redefinition of file mode macros
correct include order for winsucks2.h

dav move
========

**`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. It does not handle the dav encryption functionality, which means it does not modify *url2* if encryption is enabled.

**`-p`** disable file name and path decryption if enabled. This applies only to *url1*

**`-c`** enable file name and path decryption This applies only to *url1*

**`-O`** override the destination resource

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

[1]: ./lock.html

**Command alias:** mv

mercurial