| 1381 | } |
| 1382 | |
| 1383 | int 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 | |
| 1400 | int fs_is_dir(const char *path) |
| 1401 | { |
nothing calls this directly
no outgoing calls
no test coverage detected