Differences From Artifact [0cdfabe7b0]:
- File utils/ofarc/ZIPArchive.m — part of check-in [1a86b8175b] at 2022-02-12 07:46:07 on branch trunk — Update copyright (user: js, size: 13316) [annotate] [blame] [check-ins using] [more...]
To Artifact [cefb3af267]:
- File
utils/ofarc/ZIPArchive.m
— part of check-in
[b01c12cecd]
at
2022-10-30 18:30:51
on branch trunk
— utils/ofarc: Remove pointless range check
The range check was a leftover from when different types were used. (user: js, size: 13238) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
244 245 246 247 248 249 250 | for (OFZIPArchiveEntry *entry in _archive.entries) { void *pool = objc_autoreleasePoolPush(); OFString *fileName = entry.fileName; OFString *outFileName, *directory; OFStream *stream; OFFile *output; | | | 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | for (OFZIPArchiveEntry *entry in _archive.entries) { void *pool = objc_autoreleasePoolPush(); OFString *fileName = entry.fileName; OFString *outFileName, *directory; OFStream *stream; OFFile *output; unsigned long long written = 0, size = entry.uncompressedSize; int8_t percent = -1, newPercent; if (!all && ![files containsObject: fileName]) continue; [missing removeObject: fileName]; |
︙ | ︙ | |||
435 436 437 438 439 440 441 | [OFStdOut writeString: OF_LOCALIZED(@"adding_file", @"Adding %[file]...", @"file", fileName)]; entry = [OFMutableZIPArchiveEntry entryWithFileName: fileName]; size = (isDirectory ? 0 : attributes.fileSize); | < < < | | | 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | [OFStdOut writeString: OF_LOCALIZED(@"adding_file", @"Adding %[file]...", @"file", fileName)]; entry = [OFMutableZIPArchiveEntry entryWithFileName: fileName]; size = (isDirectory ? 0 : attributes.fileSize); entry.compressedSize = size; entry.uncompressedSize = size; entry.compressionMethod = OFZIPArchiveEntryCompressionMethodNone; entry.modificationDate = attributes.fileModificationDate; [entry makeImmutable]; |
︙ | ︙ |