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

Function mkdirp

src/cli/cli.c:1624–1626  ·  view source on GitHub ↗

Every caller here creates a directory under the user's own configuration * (skills, instruction files, the cache), so a symlink the user owns on the * way there is the user's own arrangement and is followed. Repository-derived * paths never come through this wrapper. */

Source from the content-addressed store, hash-verified

1622 * way there is the user's own arrangement and is followed. Repository-derived
1623 * paths never come through this wrapper. */
1624static int mkdirp(const char *path, int mode) {
1625 return (int)cbm_mkdir_p_ex(path, mode, CBM_MKDIR_FOLLOW_OWNED) ? 0 : CLI_ERR;
1626}
1627
1628/* Legacy migration may remove an empty directory, but never recursively
1629 * delete a tree it cannot prove it owns. POSIX lstat prevents following a

Callers 3

cbm_install_skillsFunction · 0.85
ensure_parent_dirFunction · 0.85
cbm_config_openFunction · 0.85

Calls 1

cbm_mkdir_p_exFunction · 0.85

Tested by

no test coverage detected