MCPcopy Create free account
hub / github.com/cppla/ServerStatus / fs_makedir

Function fs_makedir

server/src/system.c:1383–1398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383int fs_makedir(const char *path)
1384{
1385#if defined(CONF_FAMILY_WINDOWS)
1386 if(_mkdir(path) == 0)
1387 return 0;
1388 if(errno == EEXIST)
1389 return 0;
1390 return -1;
1391#else
1392 if(mkdir(path, 0755) == 0)
1393 return 0;
1394 if(errno == EEXIST)
1395 return 0;
1396 return -1;
1397#endif
1398}
1399
1400int fs_is_dir(const char *path)
1401{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected