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

Function fileIsOkay

test/unit/apps/pc2pcTest.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87static bool fileIsOkay(const std::string& name)
88{
89 if (!FileUtils::fileExists(name))
90 return false;
91 // 375 is the size of the LAS header.
92 if (FileUtils::fileSize(name) < 375)
93 return false;
94 return true;
95}
96
97
98static bool fileIsCompressed(const std::string& name)

Callers 1

TESTFunction · 0.85

Calls 2

fileExistsFunction · 0.50
fileSizeFunction · 0.50

Tested by

no test coverage detected