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

Function isAbsolutePath

pdal/util/FileUtils.cpp:433–439  ·  view source on GitHub ↗

Determine if the path is an absolute path

Source from the content-addressed store, hash-verified

431
432// Determine if the path is an absolute path
433bool isAbsolutePath(const std::string& path)
434{
435 if (path.find("://") != std::string::npos)
436 return true;
437
438 return fs::path(toNative(path)).is_absolute();
439}
440
441
442void fileTimes(const std::string& filename, struct tm *createTime,

Callers 2

handleRelativePathFunction · 0.85
TESTFunction · 0.85

Calls 2

toNativeFunction · 0.70
findMethod · 0.45

Tested by 1

TESTFunction · 0.68