In C ++ on Linux, I see that on the man page for remove () it partially states:
delete removes the name from the file system. It calls unlink for files and rmdir for directories.
So I'm wondering if there is a difference between calling remove () or unink () in a file? Perhaps the only difference is that unlink () is a bit faster because it doesn't need to handle directories?
source share