Skip to content

Commit ce3ba53

Browse files
committed
feat: removed the . and .. directories
1 parent 2338428 commit ce3ba53

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,6 @@ pub trait CommandExt: Sized {
353353
None => return false,
354354
};
355355

356-
// includes "." and ".." entries as they are required for directory navigation
357-
if file_name == OsStr::new(".") || file_name == OsStr::new("..") {
358-
return true;
359-
}
360-
361356
// allow directories
362357
if path.is_dir() {
363358
return true;

0 commit comments

Comments
 (0)