445Creating a Folder

Check whether a folder exists, otherwise create it.

NSFileManager *fm = [NSFileManager defaultManager];

if (![fm fileExistsAtPath:myPath isDirectory:NULL]) {
        [fm createDirectoryAtPath:myPath withIntermediateDirectories:NO attributes:nil error:nil];
}