Call visitor for each filesystem path matching the specified pattern.
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);
» more...
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);
» more...
the number of paths visited on success, and a negative value otherwise
| Name | Description |
|---|---|
| pattern | glob-style pattern of paths to visit |
| visitor | functor invoked with each matching path |