Renamed one property.

This commit is contained in:
Timofey Solomko
2017-07-02 00:02:51 +03:00
parent 16a0206cde
commit 7f4fcd55ed
+3 -3
View File
@@ -236,15 +236,15 @@ public class ZipEntry: ContainerEntry {
// For dos and unix-like systems we can parse dos attributes.
if hostSystem == 0 || hostSystem == 3 {
let attributes = cdEntry.externalFileAttributes & 0xFF
let dosAttributes = cdEntry.externalFileAttributes & 0xFF
if attributes & 0x10 != 0 && hostSystem == 0 {
if dosAttributes & 0x10 != 0 && hostSystem == 0 {
attributesDict[FileAttributeKey.type] = FileAttributeType.typeDirectory
} else if hostSystem == 0 {
attributesDict[FileAttributeKey.type] = FileAttributeType.typeRegular
}
if attributes & 0x1 != 0 {
if dosAttributes & 0x1 != 0 {
attributesDict[FileAttributeKey.appendOnly] = true
}
}