Function FindFilesWithWildcards(const std::filesystem::path&)#

Function Documentation#

inline std::vector<std::filesystem::path> FindFilesWithWildcards(const std::filesystem::path &rpathSearch)#

Find the files using the provided path.

Search for the files matching the providing search path. The search path could contain wildcards (‘*’ and ‘?’). Examples of path search criteria:

   /usr/*              - all files in /usr and all sub-directories
*  /usr/*.sdv          - all .sdv-files in /usr
*  /usr/*/*.sdv        - all .sdv-files in /usr and all sub-directories
*  /usr/*/abc/*.sdv    - looks in /usr for all .sdv-files in a sub-directory abc
*  /usr/abc*/*.sdv     - looks in /usr for all directories starting with abc and takes the .sdv-files from this directories
*  

Parameters:

rpathSearch[in] Search path with zero or more wildcards. The path is assumed to be an absolute path.

Returns:

Returns a vector with all the found files (full path).