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