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/HBOutputFileWriter.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/HBOutputFileWriter.m')
-rw-r--r-- | macosx/HBOutputFileWriter.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/HBOutputFileWriter.m b/macosx/HBOutputFileWriter.m index f01293f12..919ce04dc 100644 --- a/macosx/HBOutputFileWriter.m +++ b/macosx/HBOutputFileWriter.m @@ -17,6 +17,12 @@ self = [super init]; if (self) { + + [[NSFileManager defaultManager] createDirectoryAtPath:url.URLByDeletingLastPathComponent.path + withIntermediateDirectories:YES + attributes:nil + error:NULL]; + _url = [url copy]; f = fopen(url.fileSystemRepresentation, "w"); f = freopen(NULL, "a", f); |