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: Suggest that Purge on a nonexistent dir should return fs.ErrorDirNotFound

Nick Craig-Wood63e4d2952b0c
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index 857686853..5ea310e95 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -1874,6 +1874,9 @@ func Run(t *testing.T, opt *Opt) {
if !isBucketBasedButNotRoot(remote) {
err = operations.Purge(ctx, remote, "")
assert.Error(t, err, "Expecting error after on second purge")
+ if errors.Cause(err) != fs.ErrorDirNotFound {
+ t.Log("Warning: this should produce fs.ErrorDirNotFound")
+ }
}
})