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

Function isDirectory

pdal/util/FileUtils.cpp:422–430  ·  view source on GitHub ↗

Determine if the path represents a directory.

Source from the content-addressed store, hash-verified

420
421// Determine if the path represents a directory.
422bool isDirectory(const std::string& path)
423{
424 VSIStatBufL sStat;
425 if (VSIStatL(path.c_str(), &sStat) == 0)
426 {
427 return VSI_ISDIR(sStat.st_mode);
428 }
429 return false;
430}
431
432// Determine if the path is an absolute path
433bool isAbsolutePath(const std::string& path)

Callers 1

runOgrWriterInfoFunction · 0.85

Calls

no outgoing calls

Tested by 1

runOgrWriterInfoFunction · 0.68