From 7f4fcd55ed7ee5955018151d0fedbdfc23f209d2 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sun, 2 Jul 2017 00:02:51 +0300 Subject: [PATCH] Renamed one property. --- Sources/ZipContainer.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ZipContainer.swift b/Sources/ZipContainer.swift index 0cf67c80..056e79bf 100644 --- a/Sources/ZipContainer.swift +++ b/Sources/ZipContainer.swift @@ -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 } }