I am working on a Java desktop application in which I need to implement recycle bin functionality. Currently:
The file name or the absolute file name "c.programs.file-to-be-deleted.xls" are not unique. what you want is the unique file ID which is generated for each files which need to stored along with the deleted file objects.
When the user tries to recyle/undelete the file from recycle bin, You will operate with the file id not the file name.