Replacing deprecated method createDirectoryAtPath:attributes: with non-deprecated version createDirectoryAtPath:withIntermediateDirectories:attributes:error:

svn path=/trunk/netsurf/; revision=12430
This commit is contained in:
Sven Weidauer 2011-05-19 11:47:53 +00:00
parent eb0570f39d
commit 3d71976607
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ static NSString *cocoa_get_preferences_path( void )
BOOL exists = [fm fileExistsAtPath: netsurfPath isDirectory: &isDirectory];
if (!exists) {
exists = [fm createDirectoryAtPath: netsurfPath attributes: nil];
exists = [fm createDirectoryAtPath: netsurfPath withIntermediateDirectories: YES attributes: nil error: NULL];
isDirectory = YES;
}
if (!(exists && isDirectory)) {