1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

install: fix a typo

This commit is contained in:
Sylvestre Ledru 2020-11-25 13:09:28 +01:00
parent bfba889f8e
commit adc9b12f32

View file

@ -389,7 +389,7 @@ fn directory(paths: Vec<String>, b: Behavior) -> i32 {
}
}
/// Test if the path is a a new file path that can be
/// Test if the path is a new file path that can be
/// created immediately
fn is_new_file_path(path: &Path) -> bool {
path.is_file() || !path.exists() && path.parent().map(Path::is_dir).unwrap_or(true)