OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mapd_glob.h File Reference
#include <string>
#include <vector>
+ Include dependency graph for mapd_glob.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector< std::string > mapd_glob (const std::string &pattern)
 

Function Documentation

std::vector<std::string> mapd_glob ( const std::string &  pattern)

Definition at line 22 of file mapd_glob.cpp.

Referenced by Importer_NS::DataStreamSink::archivePlumber().

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

+ Here is the caller graph for this function: