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