MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / CMP_FindFile

Function CMP_FindFile

applications/_plugins/common/cmp_fileio.cpp:441–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441std::string CMP_FindFile(const std::vector<std::string>& paths, const std::string& filepath)
442{
443 for (size_t i = 0; i < paths.size(); i++)
444 {
445 std::string absPath = CMP_ExpandFilePath(CMP_JoinPath(paths[i], filepath));
446 if (CMP_FileExists(absPath))
447 {
448 return absPath;
449 }
450 }
451 return std::string();
452}
453
454std::string CMP_GetFilePathExtension(const std::string& fileName)
455{

Callers 1

fileio_test.cppFile · 0.85

Calls 4

CMP_ExpandFilePathFunction · 0.85
CMP_JoinPathFunction · 0.85
CMP_FileExistsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected