MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / file_is_empty

Function file_is_empty

tools/completion/completion.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static bool file_is_empty(const std::string & path) {
60 std::ifstream f;
61 f.exceptions(std::ifstream::failbit | std::ifstream::badbit);
62 f.open(path.c_str(), std::ios::in | std::ios::binary | std::ios::ate);
63 return f.tellg() == 0;
64}
65
66#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) || defined (_WIN32)
67static void sigint_handler(int signo) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected