MCPcopy Create free account
hub / github.com/PDAL/PDAL / fileExists

Function fileExists

pdal/util/FileUtils.cpp:308–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307
308bool fileExists(const std::string& name)
309{
310 if (isStdin(name))
311 return true;
312
313 VSIStatBufL sStat;
314 return (VSIStatExL(name.c_str(), &sStat,
315 VSI_STAT_EXISTS_FLAG) == 0) ? true : false;
316}
317
318
319/// \return 0 on error or invalid file type.

Callers 1

openFileFunction · 0.70

Calls 1

isStdinFunction · 0.85

Tested by

no test coverage detected