mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 14:07:46 +00:00
Update src/uu/ls/src/ls.rs
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
This commit is contained in:
parent
eccb86c9ed
commit
9f79db287b
1 changed files with 1 additions and 1 deletions
|
@ -1185,7 +1185,7 @@ fn sort_entries(entries: &mut Vec<PathData>, config: &Config) {
|
||||||
fn is_hidden(file_path: &DirEntry) -> bool {
|
fn is_hidden(file_path: &DirEntry) -> bool {
|
||||||
let metadata = fs::metadata(file_path.path()).unwrap();
|
let metadata = fs::metadata(file_path.path()).unwrap();
|
||||||
let attr = metadata.file_attributes();
|
let attr = metadata.file_attributes();
|
||||||
((attr & 0x2) > 0)
|
(attr & 0x2) > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
fn should_display(entry: &DirEntry, config: &Config) -> bool {
|
fn should_display(entry: &DirEntry, config: &Config) -> bool {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue