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: Downgrade "invalid cross-device link: trying copy" to debug - Fixes #1875

Nick Craig-Woodfdebf9da317e
diff --git a/backend/local/local.go b/backend/local/local.go
index 0b70c0dc8..b810a5078 100644
--- a/backend/local/local.go
+++ b/backend/local/local.go
@@ -491,7 +491,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)
+ fs.Debugf(src, "Can't move: %v: trying copy", err)
return nil, fs.ErrorCantMove
}
@@ -545,7 +545,7 @@ func (f *Fs) DirMove(src fs.Fs, srcRemote, dstRemote string) error {
} else if err != nil {
// not quite clear, but probably trying to move directory across file system
// boundaries. Copying might still work.
- fs.Errorf(src, "Can't move dir: %v: trying copy", err)
+ fs.Debugf(src, "Can't move dir: %v: trying copy", err)
return fs.ErrorCantDirMove
}
return nil