diff options
author | dynaflash <[email protected]> | 2009-09-16 15:21:48 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2009-09-16 15:21:48 +0000 |
commit | 6e73207f495b3ffa5d9b676aade30a65ebf70bd8 (patch) | |
tree | ba9a37ce8702a8d0e3809e4eb943b3be581f2fab /macosx/HBOutputPanelController.m | |
parent | 118dc2488827cc994696825e2293d48e2dd64dc9 (diff) |
MacGui: Replace deprecated -createDirectoryAtPath:attributes: with -createDirectoryAtPath:withIntermediateDirectories:attributes:error:
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2828 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBOutputPanelController.m')
-rw-r--r-- | macosx/HBOutputPanelController.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/macosx/HBOutputPanelController.m b/macosx/HBOutputPanelController.m index f4bdf90da..5ce02ad2d 100644 --- a/macosx/HBOutputPanelController.m +++ b/macosx/HBOutputPanelController.m @@ -138,7 +138,9 @@ if( ![[NSFileManager defaultManager] fileExistsAtPath:encodeLogDirectory] ) { [[NSFileManager defaultManager] createDirectoryAtPath:encodeLogDirectory - attributes:nil]; + withIntermediateDirectories:NO + attributes:nil + error:nil]; } outputLogFileForEncode = [[NSString stringWithFormat:@"%@/%@",encodeLogDirectory,outputDateFileName] retain]; } @@ -257,7 +259,9 @@ if( ![[NSFileManager defaultManager] fileExistsAtPath:encodeLogDirectory] ) { [[NSFileManager defaultManager] createDirectoryAtPath:encodeLogDirectory - attributes:nil]; + withIntermediateDirectories:NO + attributes:nil + error:nil]; } NSAppleScript *myScript = [[NSAppleScript alloc] initWithSource: [NSString stringWithFormat: @"%@%@%@", @"tell application \"Finder\" to open (POSIX file \"", encodeLogDirectory, @"\")"]]; |