rm: Use remove instead of unlink for removing files

This commit is contained in:
Bananymous 2023-12-14 11:03:58 +02:00
parent 8344f2f9ab
commit d273c5e77c
1 changed files with 1 additions and 1 deletions

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;