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

Function fileExists

pdal/PDALUtils.cpp:387–397  ·  view source on GitHub ↗

Check to see if a file exists. \param path Path to file. \return Whether the file exists or not. */

Source from the content-addressed store, hash-verified

385 \return Whether the file exists or not.
386*/
387bool fileExists(const std::string& path)
388{
389 if (isRemote(path))
390 {
391 arbiter::Arbiter a;
392 return (a.hasDriver(path) && a.exists(path));
393 }
394
395 // Arbiter doesn't handle our STDIN hacks.
396 return FileUtils::fileExists(path);
397}
398
399double computeHausdorff(PointViewPtr srcView, PointViewPtr candView)
400{

Callers 15

fromFileMethod · 0.70
parseArgsMethod · 0.50
initializeMethod · 0.50
initializeMethod · 0.50
getBinaryMethod · 0.50
extractDriverFromItemMethod · 0.50
diff_text_filesFunction · 0.50
diff_filesFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
TESTFunction · 0.50

Calls 2

isRemoteFunction · 0.85
existsMethod · 0.45

Tested by 12

TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
fileIsOkayFunction · 0.40
TESTFunction · 0.40
diff_geojsonFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
SetUpMethod · 0.40