Chit Khine Chit Khine - 2 years ago 89
Java Question

Can we undo file.delete() function in java?

I was trying to delete some duplicate files in my folder which is around 230GB. Therefore, I searched for files with the names _2 or _3 and use the


However, it deletes the files that I wasn't expecting it. Can I undo that process or are those files deleted permanantly?

Answer Source

The Files are gone. See this Question below

So, about the workaround, If this was on windows, using recovery tools like "File Scavenger" might help you out.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download