How can I implement “recycle bin” functionality?

前端 未结 3 1559
无人及你
无人及你 2021-01-18 15:00

I am working on a Java desktop application in which I need to implement recycle bin functionality. Currently:

  1. I copy a file using my desktop application to a f
3条回答
  •  不要未来只要你来
    2021-01-18 15:13

    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.

提交回复
热议问题