MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / exists

Method exists

lib/path.cpp:442–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442bool Path::exists(const std::string &path, bool* isdir)
443{
444 const auto type = file_type(path);
445 if (type == S_IFDIR)
446 {
447 if (isdir)
448 *isdir = true;
449 return true;
450 }
451 if (isdir)
452 *isdir = false;
453 return type == S_IFREG;
454}
455
456std::string Path::join(std::string path1, std::string path2)
457{

Callers 15

startApplicationMethod · 0.45
recheckSelectedFilesMethod · 0.45
handleCLIParamsMethod · 0.45
loadSettingsMethod · 0.45
analysisDoneMethod · 0.45
openProjectFileMethod · 0.45
analyzeProjectMethod · 0.45
openRecentProjectMethod · 0.45
setProjectMethod · 0.45
loadTextFileMethod · 0.45
runAddonsAndToolsMethod · 0.45

Calls 1

file_typeFunction · 0.85

Tested by

no test coverage detected