mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-05 23:47:46 +00:00
Updated handle_writable_directory comment
This commit is contained in:
parent
99942b4234
commit
744481c800
1 changed files with 1 additions and 0 deletions
|
@ -530,6 +530,7 @@ fn prompt_file(path: &Path, options: &Options, is_dir: bool) -> bool {
|
|||
}
|
||||
|
||||
// For directories finding if they are writable or not is a hassle. In Unix we can use the built-in rust crate to to check mode bits. But other os don't have something similar afaik
|
||||
// Most cases are covered by keep eye out for edge cases
|
||||
#[cfg(unix)]
|
||||
fn handle_writable_directory(path: &Path, options: &Options, metadata: &Metadata) -> bool {
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue