SIGN IN SIGN UP

Refactoring: generalise listFilesInDirectory()

listFilesInDirectory() implements a for-each algorithm with a pre-check
and optional recursion; this commit puts the essence of it to
forEachInDirectory() template function that will be used to traverse
the directory (with the same pre-check) in further commits.
A
Alexey Rusakov committed
dccae9c9b1bdbb3dc99bf13241a3b3925d921c57
Parent: 49f4f23