rm: Use remove instead of unlink for removing files

This commit is contained in:
2023-12-14 11:03:58 +02:00
parent 8344f2f9ab
commit d273c5e77c

View File

@@ -48,7 +48,7 @@ bool delete_recursive(const char* path)
closedir(dir);
}
if (unlink(path) == -1)
if (remove(path) == -1)
{
perror(path);
return false;