MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / looks_like_path

Function looks_like_path

server/src/common/daemon_loop.cpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 return s.size() >= p.size() && std::memcmp(s.data(), p.data(), p.size()) == 0;
135}
136
137static bool looks_like_path(const std::string & s) {
138 if (s.empty()) return false;
139 if (s[0] == '/' || s[0] == '.') return true;
140 return s.find('/') != std::string::npos;
141}
142
143static void emit_generate_error(const GenerateResult & result) {

Callers 1

run_daemonFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected