Skip to content

Commit

Permalink
Merge pull request #1 from MrPans/MrPans-patch-1
Browse files Browse the repository at this point in the history
Improve user experience: change default compression method to deflate
  • Loading branch information
MrPans authored Jan 9, 2025
2 parents e9b1917 + 464539c commit a3f3ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ZIPFoundation/FileManager+ZIP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension FileManager {
/// - progress: A progress object that can be used to track or cancel the zip operation.
/// - Throws: Throws an error if the source item does not exist or the destination URL is not writable.
public func zipItem(at sourceURL: URL, to destinationURL: URL,
shouldKeepParent: Bool = true, compressionMethod: CompressionMethod = .none,
shouldKeepParent: Bool = true, compressionMethod: CompressionMethod = .deflate,
progress: Progress? = nil) throws {
let fileManager = FileManager()
guard fileManager.itemExists(at: sourceURL) else {
Expand Down

0 comments on commit a3f3ce2

Please sign in to comment.