Skip to content

Commit

Permalink
Try unzipping the Finder file in Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 9, 2024
1 parent 433fc61 commit b9b43af
Show file tree
Hide file tree
Showing 581 changed files with 2 additions and 966 deletions.
4 changes: 0 additions & 4 deletions Sources/Zip/Zip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,7 @@ public class Zip {
if permissions >= 0o400 && permissions <= 0o777 {
do {
// TODO: Set permissions properly on Windows
#if os(Windows)
try FileManager.default.setAttributes([.posixPermissions : NSNumber(value: Int16(0o600))], ofItemAtPath: fullPath)
#else
try FileManager.default.setAttributes([.posixPermissions : permissions], ofItemAtPath: fullPath)
#endif
} catch {
print("Failed to set permissions to file \(fullPath), error: \(error)")
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b9b43af

Please sign in to comment.