From 3f0d54daae652dc11ff38a91be4a996a0227b88c Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 1 Sep 2020 15:16:14 +0100 Subject: [PATCH] crypt: fix purge bug introduced by refactor #1891 In this commit a2afa9aaddbfb2ef fs: Add directory to optional Purge interface We failed to encrypt the directory name so the Purge failed. This was spotted by the integration tests. --- backend/crypt/crypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.