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

This commit is contained in:
albertony 2021-05-28 15:09:44 +02:00
parent 9a2811f0b2
commit 18be4ad10d

View File

@ -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")
}