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

vfs: fix issue where empty dirs would build up in cache meta dir

albertony18be4ad10d11
diff --git a/vfs/vfscache/cache.go b/vfs/vfscache/cache.go
index 7427e9d0e..730c90ca4 100644
--- a/vfs/vfscache/cache.go
+++ b/vfs/vfscache/cache.go
@@ -100,7 +100,7 @@ func New(ctx context.Context, fremote fs.Fs, opt *vfscommon.Options, avFn AddVir
if err != nil {
return nil, errors.Wrap(err, "failed to create cache remote")
}
- fcacheMeta, err := fscache.Get(ctx, root)
+ fcacheMeta, err := fscache.Get(ctx, metaRoot)
if err != nil {
return nil, errors.Wrap(err, "failed to create cache meta remote")
}