diff options
author | ritsuka <[email protected]> | 2015-02-21 07:28:48 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-02-21 07:28:48 +0000 |
commit | 53508d57a481fa1e67ac66541581f925dda7fd6e (patch) | |
tree | 0c12901fc8489ede0a4a24792225681e1d7cb40d /macosx/HBJobOutputFileWriter.m | |
parent | 34c5f777ed3d5d15f9b805bfbda600c4ead7977c (diff) |
MacGui: add a preference to toggle the log cleanup. Use NSURL directly where possible.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6934 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBJobOutputFileWriter.m')
-rw-r--r-- | macosx/HBJobOutputFileWriter.m | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/macosx/HBJobOutputFileWriter.m b/macosx/HBJobOutputFileWriter.m index 2ae3c161d..fa84350ec 100644 --- a/macosx/HBJobOutputFileWriter.m +++ b/macosx/HBJobOutputFileWriter.m @@ -37,15 +37,8 @@ else { // if we are putting it in the default ~/Libraries/Application Support/HandBrake/EncodeLogs logs directory - NSString *encodeLogDirectory = [[HBUtilities appSupportPath] stringByAppendingPathComponent:@"EncodeLogs"]; - if( ![[NSFileManager defaultManager] fileExistsAtPath:encodeLogDirectory] ) - { - [[NSFileManager defaultManager] createDirectoryAtPath:encodeLogDirectory - withIntermediateDirectories:NO - attributes:nil - error:nil]; - } - outputURL = [[NSURL fileURLWithPath:encodeLogDirectory] URLByAppendingPathComponent:outputDateFileName]; + NSURL *encodeLogDirectory = [[HBUtilities appSupportURL] URLByAppendingPathComponent:@"EncodeLogs"]; + outputURL = [encodeLogDirectory URLByAppendingPathComponent:outputDateFileName]; } self = [super initWithFileURL:outputURL]; |