Function FindFilesWithWildcards(std::vector<std::filesystem::path>&, const std::filesystem::path&, const std::vector<std::string>&, size_t, std::set<std::filesystem::path>&)#

Function Documentation#

void FindFilesWithWildcards(std::vector<std::filesystem::path> &rvecFiles, const std::filesystem::path &rpathBase, const std::vector<std::string> &rvecPatternChunks, size_t nIndex, std::set<std::filesystem::path> &rsetSearch)#

Find the files using a split-up vector containing the path chunks and potential wildcard patterns.

Parameters:
  • rvecFiles[in] Reference to the list of files being found. This list will be extended iteratively.

  • rpathBase[in] Reference to the base path to match with the path/pattern chunks from the vector starting at the specified index.

  • rvecPatternChunks[in] Reference with the split search path containing the path/pattern chunks.

  • nIndex[in] The current index that must match with the sub-directories and files in the base path.

  • rsetSearch[in] Set of search paths being updated to prevent searching a path multiple times. Searching multiple times cannot be excluded when using generic wildcards that could represent zero or more sub-directories “*”.