From 64de55f41691160d32f8bb4795dd29acd05e2164 Mon Sep 17 00:00:00 2001 From: Francesco Paolo Severino Date: Sun, 29 Sep 2024 18:51:11 +0200 Subject: [PATCH] Try @compnerd fix --- Sources/Zip/Zip.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Zip/Zip.swift b/Sources/Zip/Zip.swift index ccbab051..302285be 100644 --- a/Sources/Zip/Zip.swift +++ b/Sources/Zip/Zip.swift @@ -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 }