"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
Don't make directories if --dry-run set - fixes #342
Nick Craig-Wood3343c1afa4ab
diff --git a/fs/operations.go b/fs/operations.goindex 42e5729e1..f0dbd5657 100644--- a/fs/operations.go+++ b/fs/operations.go@@ -448,9 +448,8 @@ func syncCopyMove(fdst, fsrc Fs, Delete bool, DoMove bool) error {return nil}- err := fdst.Mkdir()+ err := Mkdir(fdst)if err != nil {- Stats.Error()return err}@@ -852,6 +851,10 @@ func ListDir(f Fs, w io.Writer) error {// Mkdir makes a destination directory or containerfunc Mkdir(f Fs) error {+ if Config.DryRun {+ Log(f, "Not making directory as dry run is set")+ return nil+ }err := f.Mkdir()if err != nil {Stats.Error()