Skip to content

Commit

Permalink
fix: don't recurse into symlink when trashing a directory on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 12, 2023
1 parent 112e99e commit 3f5e842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ fn traverse_paths_recursively(
collection: &mut Vec<PathBuf>,
) -> Result<(), Error> {
for base_path in paths {
if base_path.is_file() {
if base_path.is_file() || base_path.is_symlink() {
collection.push(base_path);
continue;
}
Expand Down

0 comments on commit 3f5e842

Please sign in to comment.