ICSharpCode.SharpZipLib.Zip.ZipEntry.HasDosAttributes C# (CSharp) Method

HasDosAttributes() private method

Test the external attributes for this ZipEntry to see if the external attributes are Dos based (including WINNT and variants) and match the values
private HasDosAttributes ( int attributes ) : bool
attributes int The attributes to test.
return bool
        bool HasDosAttributes(int attributes)
        {
            bool result = false;
            if ((known & Known.ExternalAttributes) != 0) {
                result |= (((HostSystem == (int)HostSystemID.Msdos) ||
                    (HostSystem == (int)HostSystemID.WindowsNT)) &&
                    (ExternalFileAttributes & attributes) == attributes);
            }
            return result;
        }