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

Function is_executable_file

src/ui/http_server.c:1495–1498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493
1494#ifndef _WIN32
1495static bool is_executable_file(const char *path) {
1496 struct stat st;
1497 return path && stat(path, &st) == 0 && S_ISREG(st.st_mode) && access(path, X_OK) == 0;
1498}
1499
1500static bool resolve_from_path(const char *name, char *out, size_t outsz) {
1501 const char *path = getenv("PATH");

Callers 2

resolve_from_pathFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected