UPD: Don't hide folders with system attribute under Windows (fixes #1741)

This commit is contained in:
Alexander Koblov 2024-07-07 13:10:54 +03:00
commit 06a5cc8fa2

View file

@ -918,8 +918,9 @@ end;
function TNtfsFileAttributesProperty.IsSysFile: boolean;
begin
Result := ((FAttributes and FILE_ATTRIBUTE_SYSTEM) <> 0) or
((FAttributes and FILE_ATTRIBUTE_HIDDEN) <> 0);
Result := ((FAttributes and FILE_ATTRIBUTE_HIDDEN) <> 0) or
(((FAttributes and FILE_ATTRIBUTE_SYSTEM) <> 0) and
((FAttributes and FILE_ATTRIBUTE_DIRECTORY) = 0));
end;
function TNtfsFileAttributesProperty.IsLink: Boolean;