MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / stat

Class stat

OpenHD/ohd_common/src/openhd_util_filesystem.cpp:198–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197long OHDFilesystemUtil::get_file_size_bytes(const std::string &filepath) {
198 struct stat stat_buf {};
199 int rc = stat(filepath.c_str(), &stat_buf);
200 return rc == 0 ? stat_buf.st_size : -1;
201}

Callers 1

get_file_size_bytesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected