Skip to content

Commit

Permalink
Only need to invalidate target directory maybe its parent when copying
Browse files Browse the repository at this point in the history
files
  • Loading branch information
messense committed Jul 24, 2022
1 parent 7976efa commit 7f48fe1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,7 @@ impl DavFileSystem for AliyunDriveFileSystem {
FsError::GeneralFailure
})?;

if matches!(file.r#type, FileType::Folder) {
self.dir_cache.invalidate(&from).await;
}
self.dir_cache.invalidate_parent(&from).await;
self.dir_cache.invalidate(&to).await;
self.dir_cache.invalidate_parent(&to).await;
Ok(())
}
Expand Down

0 comments on commit 7f48fe1

Please sign in to comment.