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

Function fileSize

pdal/PDALUtils.cpp:264–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264uintmax_t fileSize(const std::string& path)
265{
266 uintmax_t size = 0;
267 if (isRemote(path))
268 {
269 std::unique_ptr<std::size_t> pSize = arbiter::Arbiter().tryGetSize(path);
270 if (pSize)
271 size = *pSize;
272 }
273 else
274 size = FileUtils::fileSize(path);
275 return size;
276}
277
278/**
279 Create a file (may be on a supported remote filesystem).

Callers 11

initInfoMethod · 0.50
initializeLocalMethod · 0.50
initializeMethod · 0.50
readyMethod · 0.50
readyMethod · 0.50
operator()Method · 0.50
TESTFunction · 0.50
TESTFunction · 0.50
fileIsOkayFunction · 0.50
TESTFunction · 0.50
runMethod · 0.50

Calls 1

isRemoteFunction · 0.85

Tested by 4

TESTFunction · 0.40
TESTFunction · 0.40
fileIsOkayFunction · 0.40
TESTFunction · 0.40