MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / dirExists

Function dirExists

Global/PythonUtils.cpp:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static bool dirExists(const std::string& path)
57{
58 // https://stackoverflow.com/q/18100097
59 struct stat info;
60
61 if(stat(path.c_str(), &info ) != 0) {
62 return false;
63 } else if(info.st_mode & S_IFDIR) {
64 return true;
65 }
66 return false;
67}
68
69void setupPythonEnv(const std::string& binPath)
70{

Callers 1

setupPythonEnvFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected