cache: notify vfs when using temp fs - fixes #2051

This commit is contained in:
remusb 2018-02-11 22:30:58 +02:00
parent 846bbef1e9
commit 54724a1362
3 changed files with 37 additions and 31 deletions

View file

@ -275,9 +275,7 @@ func (o *Object) Remove() error {
parentCd := NewDirectory(o.CacheFs, cleanPath(path.Dir(o.Remote())))
_ = o.CacheFs.cache.ExpireDir(parentCd)
// advertise to DirChangeNotify if wrapped doesn't do that
if o.CacheFs.Fs.Features().DirChangeNotify == nil {
o.CacheFs.notifyDirChangeUpstream(parentCd.Remote())
}
o.CacheFs.notifyDirChangeUpstreamIfNeeded(parentCd.Remote())
return nil
}