forEachFile overloads
<mrdocs/Support/Path.hpp>Call a function for each file in a directory.
Expected<void>
forEachFile(
std::string_view dirPath,
bool recursive,
AnyFileVisitor& visitor);
» more...
Visit each file in a directory.
template<class Visitor>
Expected<void>
forEachFile(
std::string_view dirPath,
bool recursive,
Visitor&& visitor);
» more...
| Name | Description |
|---|---|
| dirPath | The path to the directory. |
| recursive | If true, files in subdirectories are also visited, recursively. |
| visitor | The visitor to invoke for each file. |