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

Function has_filesystem_root

internal/cbm/service_patterns.c:705–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705static bool has_filesystem_root(const char *path) {
706 static const char *const roots[] = {"etc", "root", "var", "usr", "home", "tmp",
707 "private", "opt", "bin", "sbin", "dev", "proc",
708 "sys", "run", "lib", "lib64", "mnt", "media",
709 "boot", "srv", "Users", "Volumes", NULL};
710 for (int i = 0; roots[i]; i++) {
711 if (starts_with_segment(path, roots[i])) {
712 return true;
713 }
714 }
715 return false;
716}
717
718static bool has_hidden_config_segment(const char *path) {
719 static const char *const segments[] = {".aws", ".azure", ".config", ".docker", ".env",

Calls 1

starts_with_segmentFunction · 0.85

Tested by

no test coverage detected