diff options
author | Adrian Kummerländer | 2014-04-24 21:59:46 +0200 |
---|---|---|
committer | Adrian Kummerländer | 2014-04-24 21:59:46 +0200 |
commit | ff92d0af44fa454d066f6ee3fe2becd97206b64e (patch) | |
tree | b9998826d95e85bf3f09104234f0ef8fa7bba2de /src/support | |
parent | a31fc1169edb33126242eb035dc038cbdea407e8 (diff) | |
download | InputXSLT-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.cc | 3 |
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); } } |