336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
|
[self createDirectoryAtURL: URL];
return;
} @catch (OFCreateDirectoryFailedException *e) {
/*
* If we didn't fail because any of the parents is missing,
* there is no point in trying to create the parents.
*/
if ([e errNo] != ENOENT)
@throw e;
}
components = [URL.URLEncodedPath componentsSeparatedByString: @"/"];
for (OFString *component in components) {
if (currentPath != nil)
|
|
|
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
|
[self createDirectoryAtURL: URL];
return;
} @catch (OFCreateDirectoryFailedException *e) {
/*
* If we didn't fail because any of the parents is missing,
* there is no point in trying to create the parents.
*/
if (e.errNo != ENOENT)
@throw e;
}
components = [URL.URLEncodedPath componentsSeparatedByString: @"/"];
for (OFString *component in components) {
if (currentPath != nil)
|