Skip to content

Commit

Permalink
move the windows tag to above the is_hidden_dir function
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmarklund committed Nov 3, 2022
1 parent 9bfe01e commit 7c39d49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/nu-command/src/filesystem/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,8 @@ fn should_skip_dir(dir: impl AsRef<Path>) -> bool {
.unwrap_or(false)
}
}

#[cfg(windows)]
fn is_hidden_dir(metadata_attributes: u32) -> bool {
#[cfg(windows)]
{
// https://docs.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants
(metadata_attributes & 0x2) != 0 || (metadata_attributes & 0x4) != 0
Expand Down

0 comments on commit 7c39d49

Please sign in to comment.