stc
Loading...
Searching...
No Matches
Functions
stc::FileUtil Namespace Reference

Functions

std::optional< std::filesystem::path > findFile (const std::vector< std::filesystem::path > &searchPath, const std::filesystem::path &filename)
 

Function Documentation

◆ findFile()

std::optional< std::filesystem::path > stc::FileUtil::findFile ( const std::vector< std::filesystem::path > &  searchPath,
const std::filesystem::path &  filename 
)
inline

Utility for looking up a filename or relative path relative to any of a number of search paths.

Parameters
searchPathA list of directories to search in
filenameThe filename or relative path to find
Returns
A path to a file that exists, or an std::nullopt if filename doesn't exist in the search path.