BloombergLP::bdls::FilesystemUtil::visitPaths

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);
» 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...

Return Value

the number of paths visited on success, and a negative value otherwise

Parameters

NameDescription
patternglob-style pattern of paths to visit
visitorfunctor invoked with each matching path