diff options
Diffstat (limited to 'src/function')
-rw-r--r-- | src/function/read_file.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/function/read_file.cc b/src/function/read_file.cc index 3718f04..fe9eea5 100644 --- a/src/function/read_file.cc +++ b/src/function/read_file.cc @@ -68,7 +68,8 @@ DomDocumentCache::document_ptr FunctionReadFile::constructDocument( ); ResultNodeFacade result(domDocument.get(), "file"); - result.setAttribute("path", filePath.string()); + result.setAttribute("name", filePath.filename().string()); + result.setAttribute("base", filePath.parent_path().string()); if ( boost::filesystem::is_regular_file(filePath) ) { try { |