Skip to content

Commit fa4ae5f

Browse files
committed
Invalidate origin dir cache when copying dir
1 parent d2f78e7 commit fa4ae5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vfs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ impl DavFileSystem for AliyunDriveFileSystem {
455455
FsError::GeneralFailure
456456
})?;
457457

458+
if matches!(file.r#type, FileType::Folder) {
459+
self.dir_cache.invalidate(&from).await;
460+
}
458461
self.dir_cache.invalidate_parent(&from).await;
459462
self.dir_cache.invalidate_parent(&to).await;
460463
Ok(())

0 commit comments

Comments
 (0)