rclone/vfs
Nick Craig-Wood 59e14c25df vfs: enable rename for nearly all remotes using server side Move or Copy
Before this change remotes without server side Move (eg swift, s3,
gcs) would not be able to rename files.

After it means nearly all remotes will be able to rename files on
rclone mount with the notable exceptions of b2 and yandex.

This changes checks to see if the remote can do Move or Copy then
calls `operations.Move` to do the actual move.  This will do a server
side Move or Copy but won't download and re-upload the file.

It also checks to see if the destination exists first which avoids
conflicts or duplicates.

Fixes #1965
Fixes #2569
2018-09-29 14:56:20 +01:00
..
vfsflags vfs: enable vfs-read-chunk-size by default 2018-07-29 18:17:05 +01:00
cache_test.go Replace "golang.org/x/net/context" with "context" for go1.7+ #2154 2018-04-07 11:42:08 +01:00
cache.go Replace "golang.org/x/net/context" with "context" for go1.7+ #2154 2018-04-07 11:42:08 +01:00
dir_handle_test.go vfs: add tests and subsequent fixes 2017-11-04 10:24:10 +00:00
dir_handle.go vfs: factor duplicated Open code into vfs from mount/cmount 2017-11-03 13:00:00 +00:00
dir_test.go vfs: enable rename for nearly all remotes using server side Move or Copy 2018-09-29 14:56:20 +01:00
dir.go vfs: update vfs/refresh rc command documentation 2018-08-07 09:31:12 +01:00
errors_new.go vfs: add ECLOSED and tidy errors 2017-11-04 10:24:10 +00:00
errors_old.go vfs: add ECLOSED and tidy errors 2017-11-04 10:24:10 +00:00
errors_test.go vfs: add tests and subsequent fixes 2017-11-04 10:24:10 +00:00
errors.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
file_test.go vfs: make specialized file Open functions private 2018-01-19 11:46:01 +00:00
file.go vfs: enable rename for nearly all remotes using server side Move or Copy 2018-09-29 14:56:20 +01:00
help.go docs: clearify buffer-size is per transfer/filehandle 2018-08-17 18:11:40 +01:00
make_open_tests.go build: fix errors spotted by ineffassign linter 2018-05-05 17:32:41 +01:00
open_test.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
rc.go vfs: add vfs/poll-interval rc command 2018-09-25 14:01:13 +02:00
read_test.go build: fix errors spotted by ineffassign linter 2018-05-05 17:32:41 +01:00
read_write_test.go all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
read_write.go all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
read.go vfs: try to seek buffer on read only files 2018-08-17 18:10:28 +01:00
vfs_test.go build: fix errors spotted by ineffassign linter 2018-05-05 17:32:41 +01:00
vfs.go fs: update ChangeNotifier interface 2018-09-25 14:01:13 +02:00
write_test.go all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
write.go vfs: fix applying modtime for an open Write Handle 2018-03-06 21:58:11 +00:00