Chit Khine Chit Khine - 5 months ago 9x
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.