rm: Use remove instead of unlink for removing files
This commit is contained in:
@@ -48,7 +48,7 @@ bool delete_recursive(const char* path)
|
|||||||
closedir(dir);
|
closedir(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlink(path) == -1)
|
if (remove(path) == -1)
|
||||||
{
|
{
|
||||||
perror(path);
|
perror(path);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user