Overview
Comment: | ofarc: Create output dir if missing |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e5c48161950b70f1cf9e52573ea85f8c |
User & Date: | js on 2019-05-17 23:43:28 |
Other Links: | manifest | tags |
Context
2019-05-19
| ||
17:18 | configure: Fix killing OBJCFLAGS check-in: a1dcb80c83 user: js tags: trunk | |
2019-05-17
| ||
23:43 | ofarc: Create output dir if missing check-in: e5c4816195 user: js tags: trunk | |
2019-05-05
| ||
23:13 | OFXMLParserTests: Rename TAG_END to TAG_CLOSE check-in: c4cbcb39b9 user: js tags: trunk | |
Changes
Modified utils/ofarc/OFArc.m from [4de267fd9e] to [d8150d466e].
︙ | ︙ | |||
410 411 412 413 414 415 416 | archive = [self openArchiveWithPath: remainingArguments.firstObject type: type mode: mode encoding: encoding]; | | > | > > > > > | > | 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 | archive = [self openArchiveWithPath: remainingArguments.firstObject type: type mode: mode encoding: encoding]; if (outputDir != nil) { OFFileManager *fileManager = [OFFileManager defaultManager]; if (![fileManager directoryExistsAtPath: outputDir]) [fileManager createDirectoryAtPath: outputDir createParents: true]; [fileManager changeCurrentDirectoryPath: outputDir]; } @try { [archive extractFiles: files]; } @catch (OFCreateDirectoryFailedException *e) { OFString *error = [OFString stringWithCString: strerror(e.errNo) encoding: [OFLocale encoding]]; |
︙ | ︙ |