"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
shade: Fix VFS test issues
jhasse-shade3e21a7261b47
diff --git a/backend/shade/shade.go b/backend/shade/shade.goindex 53f39029f..d06c66d51 100644--- a/backend/shade/shade.go+++ b/backend/shade/shade.go@@ -311,6 +311,8 @@ func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object,o := &Object{fs: f,remote: remote,+ mtime: srcObj.mtime,+ size: srcObj.size,}fromFullPath := path.Join(src.Fs().Root(), srcObj.remote)toFullPath := path.Join(f.root, remote)@@ -367,7 +369,18 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote stringreturn fs.ErrorDirExists}- err := f.ensureParentDirectories(ctx, dstRemote)+ fullPathSrc := f.buildFullPath(srcRemote)+ fullPathSrcUnencoded, err := url.QueryUnescape(fullPathSrc)+ if err != nil {+ return err+ }++ fullPathDstUnencoded, err := url.QueryUnescape(fullPath)+ if err != nil {+ return err+ }++ err = f.ensureParentDirectories(ctx, dstRemote)if err != nil {return err}@@ -378,6 +391,15 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string}_, err = f.Move(ctx, o, dstRemote)++ if err == nil {++ f.createdDirMu.Lock()+ f.createdDirs[fullPathSrcUnencoded] = false+ f.createdDirs[fullPathDstUnencoded] = true+ f.createdDirMu.Unlock()+ }+return err}