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 committed by Nick Craig-Wood
parent df52896a0e
commit 478434ffef
1 changed files with 1 additions and 1 deletions

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