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:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239static char *activation_path_name_copy(const char *path) {
240 const char *slash = strrchr(path, '/');
241#ifdef _WIN32
242 const char *backslash = strrchr(path, '\\');
243 if (backslash && (!slash || backslash > slash)) {
244 slash = backslash;
245 }
246#endif
247 return activation_string_copy(slash ? slash + 1 : path);
248}
249
250static char *activation_unique_path(const char *directory, const char *tag) {
251 uint64_t sequence =

Callers 1

activation_create_uniqueFunction · 0.85

Calls 1

activation_string_copyFunction · 0.85

Tested by

no test coverage detected