Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

local: add error message for cross file system moves

Nick Craig-Wood8e2213fbbd17
diff --git a/local/local.go b/local/local.go
index 4e80b612e..667de902b 100644
--- a/local/local.go
+++ b/local/local.go
@@ -484,6 +484,7 @@ func (f *Fs) Move(src fs.Object, remote string) (fs.Object, error) {
} else if err != nil {
// not quite clear, but probably trying to move a file across file system
// boundaries. Copying might still work.
+ fs.Errorf(src, "Can't move: %v: trying copy", err)
return nil, fs.ErrorCantMove
}