Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

drive: Flush directory cache on Purge

Nick Craig-Woodf9b31591f9cb
diff --git a/drive/drive.go b/drive/drive.go
index 133cf9790..f04efd469 100644
--- a/drive/drive.go
+++ b/drive/drive.go
@@ -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
}