Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Sources/LibzipSwift/ZipArchive.swift
  • Loading branch information
MartinLau7 committed Dec 23, 2020
2 parents bf5a5cc + 61122aa commit b902b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/LibzipSwift/ZipArchive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import libzip

public final class ZipArchive: ZipErrorHandler {
private var compressionCallback: ((Double) -> Void)?
private var compressionMethod: CompressionMethod = .default
private var compressionMethod: CompressionMethod = .deflate
private var compressionLevel: CompressionLevel = .fastest

internal var archivePointer: OpaquePointer!
Expand Down Expand Up @@ -306,8 +306,8 @@ public final class ZipArchive: ZipErrorHandler {
if let entry = readEntry(from: UInt64(result)) {
var external_fa = entry.externalAttributes.attributes
external_fa |= permissionsMask
try entry.setExternalAttributes(operatingSystem: .unix, attributes: external_fa)
try entry.setCompression(method: compressionMethod, flags: compressionLevel)
try entry.setExternalAttributes(operatingSystem: .unix, attributes: external_fa)
}
}
return result
Expand Down

0 comments on commit b902b01

Please sign in to comment.