mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:41:44 +08:00
vfs: Add FlushDirCache method
This commit is contained in:
parent
a5b034a992
commit
9738f8532b
|
@ -243,11 +243,15 @@ func (vfs *VFS) Shutdown() {
|
|||
}
|
||||
}
|
||||
|
||||
// CleanUp deletes the contents of the cache
|
||||
// CleanUp deletes the contents of the on disk cache
|
||||
func (vfs *VFS) CleanUp() error {
|
||||
return vfs.cache.cleanUp()
|
||||
}
|
||||
|
||||
// FlushDirCache empties the directory cache
|
||||
func (vfs *VFS) FlushDirCache() {
|
||||
vfs.root.ForgetAll()
|
||||
}
|
||||
|
||||
// WaitForWriters sleeps until all writers have finished or
|
||||
// time.Duration has elapsed
|
||||
|
|
Loading…
Reference in New Issue
Block a user