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

Function cleanup_path_exists

tests/repro/repro_harness_cleanup.c:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <sys/stat.h>
7
8static int cleanup_path_exists(const char *path) {
9 struct stat st;
10 return path && path[0] && stat(path, &st) == 0;
11}
12
13static int cleanup_write_sentinel(const char *path) {
14 FILE *file = cbm_fopen(path, "wb");

Callers 1

Calls 1

statClass · 0.70

Tested by

no test coverage detected