Replacing deprecated method createDirectoryAtPath:attributes: with non-deprecated version createDirectoryAtPath:withIntermediateDirectories:attributes:error:
svn path=/trunk/netsurf/; revision=12430
This commit is contained in:
parent
eb0570f39d
commit
3d71976607
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue