Delete

There is a potential problem with this implementation concerning hard links.

Ordinary files, directories, and symbolic links are all deleted properly. Hard links seem to be deleted properly until we try to recreate the hard link on the command line whenupon we run into the error: "ln: failed to create hard link 'filename': File exists". In our test case, we have a file called bar and a hard link called bar.hardlink.

Our workaround is to simply create a hard link called bar.hardlink to a DIFFERENT file, then remove it, and then create a hard link to bar called bar.hardlink. We're unsure why this even works, and the fact that we get the error above when running "ln bar bar.hardlink" points to some problem, but our research has turned up little, and we feel we don't know enough about the Linux filesystem to properly troubleshoot.