1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #7022 from cakebaker/rm_remove_outdated_comment

rm: remove outdated comment
This commit is contained in:
Sylvestre Ledru 2024-12-29 15:54:43 +01:00 committed by GitHub
commit 954117fc95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -524,7 +524,7 @@ fn prompt_file(path: &Path, options: &Options) -> bool {
} }
} }
} }
// File::open(path) doesn't open the file in write mode so we need to use file options to open it in also write mode to check if it can written too
let Ok(metadata) = fs::metadata(path) else { let Ok(metadata) = fs::metadata(path) else {
return true; return true;
}; };