MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / fileSize

Function fileSize

switch/source/transfer.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 u64 fileSize(const std::string& path)
103 {
104 struct stat st;
105 if (stat(path.c_str(), &st) != 0) {
106 return 0;
107 }
108 return (u64)st.st_size;
109 }
110
111 // Returns false if any regular file exceeds the store-zip entry limit; such a
112 // file cannot be framed (no zip64) and the whole send must refuse rather than

Callers 1

collectFilesFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected