drive: Flush directory cache on Purge

This commit is contained in:
Nick Craig-Wood 2014-07-19 12:36:28 +01:00
parent 1527e64ee7
commit f9b31591f9
1 changed files with 1 additions and 0 deletions

View File

@ -708,6 +708,7 @@ func (f *FsDrive) Purge() error {
return err
}
err = f.svc.Files.Delete(f.rootId).Do()
f.dirCache.Flush()
if err != nil {
return err
}