224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
- (id <Archive>)openArchiveWithPath: (OFString*)path
{
OFFile *file = nil;
id <Archive> archive = nil;
[_archivePath release];
_archivePath = [path copy];
@try {
file = [OFFile fileWithPath: path
mode: @"rb"];
} @catch (OFOpenItemFailedException *e) {
[of_stderr writeFormat: @"Failed to open file %@: %s\n",
[e path], strerror([e errNo])];
|
>
>
>
|
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])];
|