I straight up deleted my java files after moving them to a different java project thinking I had a second copy of them in my old java project folder. Is there a way to get them back?
Asked
Active
Viewed 934 times
2
-
No need to panic. I found my solution. Right click and "restore from local history". Phew, that was a close call. – btrballin Apr 03 '15 at 06:52
-
If you haven't already done so set up 'Time Machine' backups now. – greg-449 Apr 03 '15 at 07:01
2 Answers
4
Don't panic.
Right click upper level package(folder). Select "Restore from Local History.." from the popup menu.
If you are lucky, you'll find your files there.

Henry Zhou
- 41
- 4
-
I thought the deleted files would be in trash can, but it wasn't so I panicked a little haha – btrballin Apr 03 '15 at 07:00
2
Project --> Right Click --> Restore From Local History --> Select files --> Restore

Touchstone
- 5,575
- 7
- 41
- 48
-
-
This only works if you didn't check the "delete from disk" checkbox. Next thing you need to do is to set up backups and/or check your code into an off-machine source code repository!! – Stephen C Apr 03 '15 at 07:06
-
Yeah right, but "delete from disk" option only comes when you delete a project. – Touchstone Apr 03 '15 at 07:11