"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
dropbox: fix missing encoding for rclone purge again
Nick Craig-Wood668711e43213
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.goindex bce405ec2..1b647af08 100644--- a/backend/dropbox/dropbox.go+++ b/backend/dropbox/dropbox.go@@ -946,7 +946,7 @@ func (f *Fs) purgeCheck(ctx context.Context, dir string, check bool) (err error)if root == "/" {return errors.New("can't remove root directory")}- root = f.opt.Enc.FromStandardPath(root)+ encRoot := f.opt.Enc.FromStandardPath(root)if check {// check directory exists@@ -957,7 +957,7 @@ func (f *Fs) purgeCheck(ctx context.Context, dir string, check bool) (err error)// check directory emptyarg := files.ListFolderArg{- Path: root,+ Path: encRoot,Recursive: false,}if root == "/" {@@ -978,7 +978,7 @@ func (f *Fs) purgeCheck(ctx context.Context, dir string, check bool) (err error)// remove iterr = f.pacer.Call(func() (bool, error) {- _, err = f.srv.DeleteV2(&files.DeleteArg{Path: root})+ _, err = f.srv.DeleteV2(&files.DeleteArg{Path: encRoot})return shouldRetry(ctx, err)})return err