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

Fix delete command to wait until all finished - fixes missing deletes.

Nick Craig-Wooda6320bbad378
diff --git a/fs/operations.go b/fs/operations.go
index d8143178f..b957e2d7a 100644
--- a/fs/operations.go
+++ b/fs/operations.go
@@ -906,6 +906,7 @@ func Delete(f Fs) error {
delete <- o
})
close(delete)
+ wg.Wait()
return err
}