MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / has_trailing_sep

Function has_trailing_sep

src/discover/discover.c:196–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196static bool has_trailing_sep(const char *path) {
197 size_t len = strlen(path);
198 return len > 0 && (path[len - SKIP_ONE] == '/' || path[len - SKIP_ONE] == '\\');
199}
200
201static void path_join(char *out, size_t out_sz, const char *base, const char *rel) {
202 if (!out || out_sz == 0) {

Callers 1

path_joinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected