mrdocs::forEachFile
Call a function for each file in a directory.
Synopsis
Declared in <mrdocs/Support/Path.hpp>
Expected<void>
forEachFile(
std::string_view dirPath,
bool recursive,
AnyFileVisitor& visitor);
Description
This will iterate all the regular files in a directory and invoke the visitor with the path.
Parameters
| 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. |
Created with MrDocs