aboutsummaryrefslogtreecommitdiff
path: root/src/function/generate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/function/generate.cc')
-rw-r--r--src/function/generate.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/function/generate.cc b/src/function/generate.cc
index 4ece322..0c5c664 100644
--- a/src/function/generate.cc
+++ b/src/function/generate.cc
@@ -26,6 +26,7 @@ DomDocumentCache::document_ptr FunctionGenerate::constructDocument(
ResultNodeFacade result(domDocument.get(), "generation");
result.setAttribute("path", targetPath.string());
+ boost::filesystem::create_directories(targetPath.parent_path());
boost::filesystem::ofstream file(targetPath);
if ( file.is_open() ) {