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

Function ws_mkdir_canonical

tests/test_workspace.c:518–524  ·  view source on GitHub ↗

Create / and return it in canonical form. */

Source from the content-addressed store, hash-verified

516
517/* Create <parent>/<name> and return it in canonical form. */
518static bool ws_mkdir_canonical(const char *parent, const char *name, char *out, size_t out_sz) {
519 char made[WS_T_PATH];
520 if (!ws_join(made, sizeof(made), parent, name) || cbm_mkdir(made) != 0) {
521 return false;
522 }
523 return cbm_canonical_path(made, out, out_sz) == 1;
524}
525
526static void ws_manifest_write(const char *base, const char *body) {
527 char path[WS_T_PATH];

Callers 1

test_workspace.cFile · 0.85

Calls 2

ws_joinFunction · 0.85
cbm_canonical_pathFunction · 0.85

Tested by

no test coverage detected