Update src/fs/file.rs

This commit is contained in:
Chester Liu 2022-05-06 13:30:35 +08:00 committed by GitHub
parent 53cb75cf2b
commit 6fb3740f24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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),