MCPcopy Create free account
hub / github.com/apache/brpc / GetFileSize

Function GetFileSize

src/butil/file_util.cc:199–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199bool GetFileSize(const FilePath& file_path, int64_t* file_size) {
200 File::Info info;
201 if (!GetFileInfo(file_path, &info))
202 return false;
203 *file_size = info.size;
204 return true;
205}
206
207bool TouchFile(const FilePath& path,
208 const Time& last_accessed,

Callers 2

TEST_FFunction · 0.85
TESTFunction · 0.85

Calls 1

GetFileInfoFunction · 0.85

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68