Differences From Artifact [c9180070ce]:
- File utils/ofzip/OFZIP.m — part of check-in [fed68f8fd5] at 2016-05-16 13:44:55 on branch trunk — OFZIP: Add a mode for printing files (user: js, size: 8553) [annotate] [blame] [check-ins using]
To Artifact [3d1c32bca2]:
- File utils/ofzip/OFZIP.m — part of check-in [4ac59d558b] at 2016-05-16 13:47:56 on branch trunk — OFZIP: Do not try to open archive if path is nil (user: js, size: 8586) [annotate] [blame] [check-ins using]
| ︙ | |||
224 225 226 227 228 229 230 231 232 233 234 235 236 237 | 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | + + + |
- (id <Archive>)openArchiveWithPath: (OFString*)path
{
OFFile *file = nil;
id <Archive> archive = nil;
[_archivePath release];
_archivePath = [path copy];
if (path == nil)
return nil;
@try {
file = [OFFile fileWithPath: path
mode: @"rb"];
} @catch (OFOpenItemFailedException *e) {
[of_stderr writeFormat: @"Failed to open file %@: %s\n",
[e path], strerror([e errNo])];
|
| ︙ |