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

Function has_filesystem_root

internal/cbm/service_patterns.c:591–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591static bool has_filesystem_root(const char *path) {
592 static const char *const roots[] = {"etc", "root", "var", "usr", "home", "tmp",
593 "private", "opt", "bin", "sbin", "dev", "proc",
594 "sys", "run", "lib", "lib64", "mnt", "media",
595 "boot", "srv", "Users", "Volumes", NULL};
596 for (int i = 0; roots[i]; i++) {
597 if (starts_with_segment(path, roots[i])) {
598 return true;
599 }
600 }
601 return false;
602}
603
604static bool has_hidden_config_segment(const char *path) {
605 static const char *const segments[] = {".aws", ".azure", ".config", ".docker", ".env",

Calls 1

starts_with_segmentFunction · 0.85

Tested by

no test coverage detected