diff options
author | Adrian Kummerlaender | 2014-07-23 19:07:28 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-07-23 19:07:28 +0200 |
commit | f12fc4066e35b34d3ff504842bcbf513256c52ec (patch) | |
tree | b0cac0bd89f941dd76138dd4a0eca2c3efdf5cb5 /src/function/write_file.cc | |
parent | dfa53577fcf7345e67485e71ecc20ec82f9dd521 (diff) | |
download | InputXSLT-f12fc4066e35b34d3ff504842bcbf513256c52ec.tar InputXSLT-f12fc4066e35b34d3ff504842bcbf513256c52ec.tar.gz InputXSLT-f12fc4066e35b34d3ff504842bcbf513256c52ec.tar.bz2 InputXSLT-f12fc4066e35b34d3ff504842bcbf513256c52ec.tar.lz InputXSLT-f12fc4066e35b34d3ff504842bcbf513256c52ec.tar.xz InputXSLT-f12fc4066e35b34d3ff504842bcbf513256c52ec.tar.zst InputXSLT-f12fc4066e35b34d3ff504842bcbf513256c52ec.zip |
Added directory creation to FunctionGenerate and FunctionWriteFile
* i.e. they now create the directory tree required to contain their respective output files automatically
* this is needed so TestXSLT is able to create the target directory implicitly
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() ) { |