Skip to content

Commit d2f78e7

Browse files
committed
Invalidate origin dir cache when removing dir
1 parent f468d0a commit d2f78e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vfs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ impl DavFileSystem for AliyunDriveFileSystem {
394394
error!(path = %path.display(), error = %err, "remove directory failed");
395395
FsError::GeneralFailure
396396
})?;
397+
self.dir_cache.invalidate(&path).await;
397398
self.dir_cache.invalidate_parent(&path).await;
398399
Ok(())
399400
}

0 commit comments

Comments
 (0)