MCPcopy Create free account
hub / github.com/Kitware/CMake / Mkdir

Function Mkdir

Source/cmSystemTools.cxx:1426–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1424#endif
1425
1426inline int Mkdir(char const* dir, mode_t const* mode)
1427{
1428#if defined(_WIN32)
1429 int ret = _wmkdir(cmSystemTools::ConvertToWindowsExtendedPath(dir).c_str());
1430 if (ret == 0 && mode)
1431 cmSystemTools::SystemTools::SetPermissions(dir, *mode);
1432 return ret;
1433#else
1434 return mkdir(dir, mode ? *mode : 0777);
1435#endif
1436}
1437
1438#ifdef CMAKE_NO_MKDTEMP
1439namespace {

Callers 1

MakeTempDirectoryMethod · 0.70

Calls 2

SetPermissionsFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…