forked from Bananymous/banan-os
rm: Use remove instead of unlink for removing files
This commit is contained in:
parent
8344f2f9ab
commit
d273c5e77c
|
@ -48,7 +48,7 @@ bool delete_recursive(const char* path)
|
|||
closedir(dir);
|
||||
}
|
||||
|
||||
if (unlink(path) == -1)
|
||||
if (remove(path) == -1)
|
||||
{
|
||||
perror(path);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue