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

Function fs_parent_dir

server/src/system.c:1450–1465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1448}
1449
1450int fs_parent_dir(char *path)
1451{
1452 char *parent = 0;
1453 for(; *path; ++path)
1454 {
1455 if(*path == '/' || *path == '\\')
1456 parent = path;
1457 }
1458
1459 if(parent)
1460 {
1461 *parent = 0;
1462 return 0;
1463 }
1464 return 1;
1465}
1466
1467int fs_remove(const char *filename)
1468{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected