Skip to content

Commit

Permalink
Try @compnerd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 29, 2024
1 parent 8c30bda commit 64de55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Zip/Zip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Zip {
fileOutputHandler: ((_ unzippedFile: URL) -> Void)? = nil
) throws {
// Check whether a zip file exists at path.
let path = zipFilePath.path
let path = zipFilePath.withUnsafeFileSystemRepresentation { String(cString: $0!) }
if FileManager.default.fileExists(atPath: path) == false || !isValidFileExtension(zipFilePath.pathExtension) {
throw ZipError.fileNotFound
}
Expand Down

0 comments on commit 64de55f

Please sign in to comment.