Differences From Artifact [9f9989e04e]:
- File
utils/ofzip/OFZIP.m
— part of check-in
[23e57c5040]
at
2017-07-22 23:04:35
on branch trunk
— OFFile: Simplify mode
This removes "b" for binary and always uses binary, as there is no good
reason to not use binary. (user: js, size: 13853) [annotate] [blame] [check-ins using]
To Artifact [772087febb]:
- File utils/ofzip/OFZIP.m — part of check-in [ccf8ecbb83] at 2017-08-05 17:24:16 on branch trunk — OFGZIPStream: Prepare for adding write support (user: js, size: 13876) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
345 346 347 348 349 350 351 | @try { if ([type isEqual: @"gz"]) archive = [GZIPArchive archiveWithStream: file]; else if ([type isEqual: @"tar"]) archive = [TarArchive archiveWithStream: file]; else if ([type isEqual: @"tgz"]) archive = [TarArchive archiveWithStream: | | > | 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 | @try { if ([type isEqual: @"gz"]) archive = [GZIPArchive archiveWithStream: file]; else if ([type isEqual: @"tar"]) archive = [TarArchive archiveWithStream: file]; else if ([type isEqual: @"tgz"]) archive = [TarArchive archiveWithStream: [OFGZIPStream streamWithStream: file mode: @"r"]]; else if ([type isEqual: @"zip"]) archive = [ZIPArchive archiveWithStream: file]; else { [of_stderr writeLine: OF_LOCALIZED( @"unknown_archive_type", @"Unknown archive type: %[type]", @"type", type)]; |
︙ | ︙ |