BloombergLP::bdls::FilesystemUtil::findMatchingPaths

Load into result all filesystem paths matching pattern.

Synopses

Declared in <bdls_filesystemutil.h>

Load into result all filesystem paths matching pattern.

static
int
findMatchingPaths(
    bsl::vector<bsl::string>* result,
    char const* pattern);
» more...

Load into result all filesystem paths matching pattern.

static
int
findMatchingPaths(
    std::pmr::vector<std::pmr::string>* result,
    char const* pattern);
» more...

Load into result all filesystem paths matching pattern.

static
int
findMatchingPaths(
    std::vector<std::string>* result,
    char const* pattern);
» more...

Load into result all filesystem paths matching pattern.

template<class STRING_TYPE>
static
int
findMatchingPaths(
    bsl::vector<bsl::string>* result,
    STRING_TYPE const& pattern);
» more...

Load into result all filesystem paths matching pattern.

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

Load into result all filesystem paths matching pattern.

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

Return Value

  • 0 on success, and a non-zero value otherwise
  • the number of paths matched on success, and a negative value otherwise

Parameters

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