summaryrefslogtreecommitdiffstats
path: root/macosx/HBJobOutputFileWriter.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBJobOutputFileWriter.m')
-rw-r--r--macosx/HBJobOutputFileWriter.m11
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];