Find a file in a list of directories.
More...
#include <file_finder.h>
|
std::filesystem::path | operator() (const std::string &fileName, const std::vector< std::filesystem::path > &searchDirectories) |
| Find first instance of file in searchDirectories. More...
|
|
|
static std::filesystem::path | findFile (const std::string &fileName, const std::vector< std::filesystem::path > &searchDirectories) |
| Find first instance of file in searchDirectories. More...
|
|
Find a file in a list of directories.
◆ findFile()
std::filesystem::path FileFinder::findFile |
( |
const std::string & |
fileName, |
|
|
const std::vector< std::filesystem::path > & |
searchDirectories |
|
) |
| |
|
static |
Find first instance of file in searchDirectories.
- Parameters
-
fileName | Filename to find |
searchDirectories | Directories under which to search for file |
- Returns
- Returns Path to fileName. Empty if not found
◆ operator()()
std::filesystem::path FileFinder::operator() |
( |
const std::string & |
fileName, |
|
|
const std::vector< std::filesystem::path > & |
searchDirectories |
|
) |
| |
Find first instance of file in searchDirectories.
- Parameters
-
fileName | Filename to find |
searchDirectories | Directories under which to search for file |
- Returns
- Returns Path to fileName. Empty if not found
The documentation for this class was generated from the following files: