Overview
| Comment: | ofarc: Don't list/extract deleted files by default
Only list them when using -v and only extract them when explicitly |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
08eb6b5bca0ea8431d0e4ec2cec2d9a3 |
| User & Date: | js on 2024-03-02 09:31:47 |
| Other Links: | manifest | tags |
Context
|
2024-03-02
| ||
| 09:49 | OFZooArchiveEntry: Add time zone (check-in: e320edd7de user: js tags: trunk) | |
| 09:31 | ofarc: Don't list/extract deleted files by default (check-in: 08eb6b5bca user: js tags: trunk) | |
|
2024-03-01
| ||
| 18:29 | OFZooArchiveEntry: Handle time zone (check-in: 6985292473 user: js tags: trunk) | |
Changes
Modified utils/ofarc/ZooArchive.m from [84c3532ff9] to [7815482be6].
| ︙ | |||
117 118 119 120 121 122 123 124 125 126 127 128 129 130 | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | + + + + + |
- (void)listFiles
{
OFZooArchiveEntry *entry;
while ((entry = [_archive nextEntry]) != nil) {
void *pool = objc_autoreleasePoolPush();
if (app->_outputLevel < 1 && entry.deleted) {
objc_autoreleasePoolPop(pool);
continue;
}
[OFStdOut writeLine: entry.fileName];
if (app->_outputLevel >= 1) {
OFString *modificationDate = [entry.modificationDate
localDateStringWithFormat: @"%Y-%m-%d %H:%M:%S"];
OFString *compressedSize = [OFString stringWithFormat:
|
| ︙ | |||
228 229 230 231 232 233 234 235 236 237 238 239 240 241 | 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | + + + |
OFFile *output;
OFStream *stream;
unsigned long long written = 0, size = entry.uncompressedSize;
int8_t percent = -1, newPercent;
if (!all && ![files containsObject: fileName])
continue;
if (all && entry.deleted)
continue;
[missing removeObject: fileName];
outFileName = [app safeLocalPathForPath: fileName];
if (outFileName == nil) {
[OFStdErr writeLine: OF_LOCALIZED(
@"refusing_to_extract_file",
|
| ︙ |