diff options
Diffstat (limited to 'src/function/write_file.cc')
-rw-r--r-- | src/function/write_file.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/function/write_file.cc b/src/function/write_file.cc index 06fdcfd..70412d7 100644 --- a/src/function/write_file.cc +++ b/src/function/write_file.cc @@ -24,6 +24,7 @@ bool serializeNodeToFile( if ( contentType != xalan::XalanNode::DOCUMENT_NODE && contentType != xalan::XalanNode::ATTRIBUTE_NODE ) { + boost::filesystem::create_directories(filePath.parent_path()); boost::filesystem::ofstream file(filePath); if ( file.is_open() ) { |