BloombergLP::bdls::FilesystemUtil::findMatchingPaths

Load into result all filesystem paths matching pattern.

Synopsis

Declared in <bdls_filesystemutil.h>

template<class STRING_TYPE>
static
int
findMatchingPaths(
    std::pmr::vector<std::pmr::string>* result,
    STRING_TYPE const& pattern);

Description

Same as the overload taking const char *.

Return Value

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

Parameters

NameDescription
resultreceives the matching path names
patternglob-style pattern to match