Skip to content

Commit

Permalink
Try fixing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 9, 2024
1 parent 5662231 commit 9113f27
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 @@ -183,7 +183,7 @@ public class Zip {
// You might need to handle this separately if required
}
// Set the file attributes on Windows
if !SetFileAttributesW(fullPath.withCString(encodedAs: UTF16.self) { $0 }, attributes) {
if !SetFileAttributesW(fullPath.utf16.map { WCHAR($0) } + [0], attributes) {
print("Failed to set permissions to file \(fullPath), error: \(GetLastError())")
}
#else
Expand Down

0 comments on commit 9113f27

Please sign in to comment.