MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / FileSystem_createDirectory

Function FileSystem_createDirectory

Tools/ToolsBootstrap.c:667–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665 const char* lastBackslash = strrchr(path, '\\');
666 if (!lastSlash) return lastBackslash ? lastBackslash + 1 : path;
667 if (!lastBackslash) return lastSlash + 1;
668 return (lastSlash > lastBackslash ? lastSlash : lastBackslash) + 1;
669}
670
671char* deriveToolIdentity(const char* toolPath) {
672 const char* fileName = Path_fileName(toolPath);
673 size_t len = strlen(fileName);
674 if (len >= 4 && strcmp(fileName + len - 4, ".cpp") == 0) {
675 len -= 4;
676 }
677 size_t start = 0;
678 if (len >= 3 && fileName[0] == 'S' && fileName[1] == 'C' && fileName[2] == '-') {

Callers 1

Calls 1

Tested by

no test coverage detected