mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-21 19:45:11 +00:00
Update src/fs/file.rs
This commit is contained in:
parent
53cb75cf2b
commit
6fb3740f24
@ -475,6 +475,7 @@ impl<'dir> File<'dir> {
|
||||
let bits = self.metadata.file_attributes();
|
||||
let has_bit = |bit| bits & bit == bit;
|
||||
|
||||
// https://docs.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants
|
||||
f::Attributes {
|
||||
directory: has_bit(0x10),
|
||||
archive: has_bit(0x20),
|
||||
|
Loading…
Reference in New Issue
Block a user