forked from TrueCloudLab/rclone
crypt: fix purge bug introduced by refactor #1891
In this commit
a2afa9aadd
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.
This commit is contained in:
parent
7dcbebf9bc
commit
3f0d54daae
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue