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

Function fileExists

Global/PythonUtils.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44#include "../Global/StrUtils.h"
45
46NATRON_NAMESPACE_ENTER
47NATRON_PYTHON_NAMESPACE_ENTER
48
49static bool fileExists(const std::string& path)
50{
51 FStreamsSupport::ifstream ifile;
52 FStreamsSupport::open(&ifile, path);
53 return ifile.good();
54}
55
56static bool dirExists(const std::string& path)
57{

Callers 4

allocateMethod · 0.85
restoreBufferFromFileMethod · 0.85
CacheClass · 0.85
setupPythonEnvFunction · 0.85

Calls 1

openFunction · 0.85

Tested by

no test coverage detected