"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
operations: move and copy log name of the destination object in verbose
Adam Plánský127f0fc64c3b
diff --git a/fs/operations/operations.go b/fs/operations/operations.goindex d57153b33..68fbb6165 100644--- a/fs/operations/operations.go+++ b/fs/operations/operations.go@@ -501,8 +501,11 @@ func Copy(ctx context.Context, f fs.Fs, dst fs.Object, remote string, src fs.Objreturn newDst, err}}-- fs.Infof(src, actionTaken)+ if src.String() != newDst.String() {+ fs.Infof(src, "%s to: %s", actionTaken, newDst.String())+ } else {+ fs.Infof(src, actionTaken)+ }return newDst, err}@@ -556,7 +559,12 @@ func Move(ctx context.Context, fdst fs.Fs, dst fs.Object, remote string, src fs.newDst, err = doMove(ctx, src, remote)switch err {case nil:- fs.Infof(src, "Moved (server-side)")+ if src.String() != newDst.String() {+ fs.Infof(src, "Moved (server-side) to: %s", newDst.String())+ } else {+ fs.Infof(src, "Moved (server-side)")+ }+return newDst, nilcase fs.ErrorCantMove:fs.Debugf(src, "Can't move, switching to copy")