From 6fb3740f24a495f67e0adadd7c39a742586ca79c Mon Sep 17 00:00:00 2001 From: Chester Liu Date: Fri, 6 May 2022 13:30:35 +0800 Subject: [PATCH] Update src/fs/file.rs --- src/fs/file.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fs/file.rs b/src/fs/file.rs index ca1737e..7112109 100644 --- a/src/fs/file.rs +++ b/src/fs/file.rs @@ -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),