forked from TrueCloudLab/rclone
cache: notify vfs when using temp fs - fixes #2051
This commit is contained in:
parent
846bbef1e9
commit
54724a1362
3 changed files with 37 additions and 31 deletions
4
backend/cache/object.go
vendored
4
backend/cache/object.go
vendored
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue