diff --git a/Sources/Zip/URL+nativePath.swift b/Sources/Zip/URL+nativePath.swift index 5cfc0211..f15e2a5d 100644 --- a/Sources/Zip/URL+nativePath.swift +++ b/Sources/Zip/URL+nativePath.swift @@ -8,4 +8,4 @@ extension URL { var nativePath: String { return withUnsafeFileSystemRepresentation { String(cString: $0!) } } -} \ No newline at end of file +} diff --git a/Sources/Zip/Zip.swift b/Sources/Zip/Zip.swift index 3670c5ab..b6cf91ba 100644 --- a/Sources/Zip/Zip.swift +++ b/Sources/Zip/Zip.swift @@ -161,7 +161,7 @@ public class Zip { withIntermediateDirectories: true, attributes: directoryAttributes ) - + if isDirectory { try FileManager.default.createDirectory( atPath: fullPath,