24 std::vector<std::string>
glob(
const std::string& pattern) {
25 std::vector<std::string> results;
27 ::glob(pattern.c_str(), GLOB_BRACE | GLOB_TILDE,
nullptr, &glob_result);
28 for (
size_t i = 0; i < glob_result.gl_pathc; i++) {
29 results.emplace_back(glob_result.gl_pathv[i]);
31 globfree(&glob_result);
std::vector< std::string > glob(const std::string &pattern)