MCPcopy Create free account
hub / github.com/comaps/comaps / GetFileSize

Function GetFileSize

libs/coding/internal/file_data.cpp:164–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164bool GetFileSize(string const & fName, uint64_t & sz)
165{
166 try
167 {
168 typedef FileData fdata_t;
169 fdata_t f(fName, fdata_t::Op::READ);
170 sz = f.Size();
171 return true;
172 }
173 catch (RootException const &)
174 {
175 // supress all exceptions here
176 return false;
177 }
178}
179
180namespace
181{

Callers 7

UNIT_TESTFunction · 0.85
CheckFileOperationResultFunction · 0.85
UNIT_CLASS_TESTFunction · 0.85
FileHttpRequestMethod · 0.85
FinishDownloadSuccessFunction · 0.85
FinishDownloadFailFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by 5

UNIT_TESTFunction · 0.68
UNIT_CLASS_TESTFunction · 0.68
FinishDownloadSuccessFunction · 0.68
FinishDownloadFailFunction · 0.68
UNIT_TESTFunction · 0.68