mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
Renamed one property.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user