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

Function fileTimes

pdal/util/FileUtils.cpp:442–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440
441
442void fileTimes(const std::string& filename, struct tm *createTime,
443 struct tm *modTime)
444{
445 VSIStatBufL sStat;
446 if (VSIStatL(filename.c_str(), &sStat) == 0)
447 {
448 if (createTime)
449 VSIGMTime(const_cast<time_t *>(&sStat.st_ctime), createTime);
450 if (modTime)
451 VSIGMTime(const_cast<time_t *>(&sStat.st_mtime), modTime);
452 }
453}
454
455
456std::string extension(const std::string& filename)

Callers 1

createFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected