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

Function activation_path_name_copy

src/cli/activation_transaction.c:228–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static char *activation_path_name_copy(const char *path) {
229 const char *slash = strrchr(path, '/');
230#ifdef _WIN32
231 const char *backslash = strrchr(path, '\\');
232 if (backslash && (!slash || backslash > slash)) {
233 slash = backslash;
234 }
235#endif
236 return activation_string_copy(slash ? slash + 1 : path);
237}
238
239static char *activation_unique_path(const char *directory, const char *tag) {
240 uint64_t sequence =

Callers 1

activation_create_uniqueFunction · 0.85

Calls 1

activation_string_copyFunction · 0.85

Tested by

no test coverage detected