From 7142544d43b431df44d34921b0f3012fa1e0137d Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Mon, 21 Apr 2014 21:47:20 +0200 Subject: Implemented basic external directory traversal function * _read-directory_ lists all files in a given directory ** currently text-only output, xml planned * improved FilesystemContext path resolution (relative path is fully resolved by boost::filesystem) --- CMakeLists.txt | 1 + dummy/transform.xsl | 5 +++- src/function/read_directory.cc | 49 +++++++++++++++++++++++++++++++++++++++ src/function/read_directory.h | 41 ++++++++++++++++++++++++++++++++ src/support/filesystem_context.cc | 49 ++++++++++++++++++++++++++++++++------- src/support/filesystem_context.h | 6 +++++ src/transformer_facade.cc | 10 ++++++++ 7 files changed, 152 insertions(+), 9 deletions(-) create mode 100644 src/function/read_directory.cc create mode 100644 src/function/read_directory.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 43b8e98..915a05d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ add_executable( src/transformer_facade.cc src/function/read_file.cc src/function/read_xml_file.cc + src/function/read_directory.cc src/support/filesystem_context.cc ) diff --git a/dummy/transform.xsl b/dummy/transform.xsl index 803e0f6..c0437a0 100644 --- a/dummy/transform.xsl +++ b/dummy/transform.xsl @@ -18,11 +18,14 @@