Call visitor for each filesystem path matching the specified pattern.
Synopses
Declared in <bdls_filesystemutil.h>
Call visitor for each filesystem path matching the specified pattern.
static
int
visitPaths(
char const* pattern,
bsl::function<void(char const*)> const& visitor);
Call visitor for each filesystem path matching the specified pattern.
template<class STRING_TYPE>
static
int
visitPaths(
STRING_TYPE const& pattern,
bsl::function<void(char const*)> const& visitor);
Return Value
the number of paths visited on success, and a negative value otherwise
Parameters
Name |
Description |
pattern |
glob‐style pattern of paths to visit |
visitor |
functor invoked with each matching path |
Created with MrDocs