Chit Khine Chit Khine - 10 months ago 47
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?


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.