MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / getFileSize

Method getFileSize

src/utils/Utils.cpp:102–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102size_t Utils::getFileSize(const std::string& file)
103{
104 FILE* f = fopen(file.c_str(), "rb");
105
106 if (!f)
107 return 0;
108
109 fseek(f, 0, SEEK_END);
110 size_t s = ftell(f);
111
112 fclose(f);
113
114 return s;
115}
116
117std::string Utils::getCaseSensitivePath(const std::string& caseInsensitivePath, const std::string& prePath)
118{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected