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

crypt: fix purge bug introduced by refactor #1891

Nick Craig-Wood3f0d54daae65
diff --git a/backend/crypt/crypt.go b/backend/crypt/crypt.go
index 831af4261..9d2ad946b 100644
--- a/backend/crypt/crypt.go
+++ b/backend/crypt/crypt.go
@@ -438,7 +438,7 @@ func (f *Fs) Purge(ctx context.Context, dir string) error {
if do == nil {
return fs.ErrorCantPurge
}
- return do(ctx, dir)
+ return do(ctx, f.cipher.EncryptDirName(dir))
}
// Copy src to this remote using server side copy operations.