aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-04-24 21:59:46 +0200
committerAdrian Kummerländer2014-04-24 21:59:46 +0200
commitff92d0af44fa454d066f6ee3fe2becd97206b64e (patch)
treeb9998826d95e85bf3f09104234f0ef8fa7bba2de /src/support
parenta31fc1169edb33126242eb035dc038cbdea407e8 (diff)
downloadInputXSLT-ff92d0af44fa454d066f6ee3fe2becd97206b64e.tar
InputXSLT-ff92d0af44fa454d066f6ee3fe2becd97206b64e.tar.gz
InputXSLT-ff92d0af44fa454d066f6ee3fe2becd97206b64e.tar.bz2
InputXSLT-ff92d0af44fa454d066f6ee3fe2becd97206b64e.tar.lz
InputXSLT-ff92d0af44fa454d066f6ee3fe2becd97206b64e.tar.xz
InputXSLT-ff92d0af44fa454d066f6ee3fe2becd97206b64e.tar.zst
InputXSLT-ff92d0af44fa454d066f6ee3fe2becd97206b64e.zip
Expanded FunctionReadDirectory class to return files and directories
* they are marked appropriately by a _type_ attribute
Diffstat (limited to 'src/support')
-rw-r--r--src/support/filesystem_context.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/support/filesystem_context.cc b/src/support/filesystem_context.cc
index d0813c2..baeccf3 100644
--- a/src/support/filesystem_context.cc
+++ b/src/support/filesystem_context.cc
@@ -40,7 +40,8 @@ void FilesystemContext::iterate(
for ( boost::filesystem::directory_iterator iter(directory);
iter != boost::filesystem::directory_iterator();
++iter ) {
- if ( boost::filesystem::is_regular_file(iter->status()) ) {
+ if ( boost::filesystem::is_regular_file(iter->status()) ||
+ boost::filesystem::is_directory(iter->status()) ) {
func(*iter);
}
}