Undeleting Files
The files with the undelete flag are
copied to the undelete directory, the contents of the undelete directory
can be listed, so the most important thing that was missing was the ability
to recover files from the undelete directory. This was done by creating
a function called undelete that receives the name of the file to be undeleted
and proceeds to copy it either to the filesystem's mount point or to the
path specified by the user, if he is the owner of the file.
Back...