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

fstests: allow Purge to fail with ErrorDirNotFound

Nick Craig-Woodced2616da5d1
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index c9f10b477..b5b2c834d 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -1793,7 +1793,9 @@ func Run(t *testing.T, opt *Opt) {
// Purge the folder
err = operations.Purge(ctx, remote, "")
- require.NoError(t, err)
+ if errors.Cause(err) != fs.ErrorDirNotFound {
+ require.NoError(t, err)
+ }
purged = true
fstest.CheckListing(t, remote, []fstest.Item{})