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

Function gf_capture_cleanup

src/mcp/test_impact_git.c:324–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322#endif
323
324static bool gf_capture_cleanup(gf_capture_t *capture) {
325 bool ok = true;
326 if (capture->out[0] && cbm_unlink(capture->out) != 0 && errno != ENOENT)
327 ok = false;
328 if (capture->err[0] && cbm_unlink(capture->err) != 0 && errno != ENOENT)
329 ok = false;
330 if (capture->in[0] && cbm_unlink(capture->in) != 0 && errno != ENOENT)
331 ok = false;
332 if (capture->directory[0] && cbm_rmdir(capture->directory) != 0 && errno != ENOENT)
333 ok = false;
334 return ok;
335}
336
337static bool gf_capture_create(cbm_git_facts_t *facts, gf_capture_t *capture,
338 cbm_git_facts_error_t *error) {

Callers 2

gf_capture_createFunction · 0.85
gf_run_inputFunction · 0.85

Calls 2

cbm_unlinkFunction · 0.85
cbm_rmdirFunction · 0.85

Tested by

no test coverage detected