0

Long story short, I accidently deleted a project which I thought was something else, but not, and I deleted the file from the disk. How do I get the file back? Im running Recuva, but are there any other file recovery methods out there?

mooL
  • 59
  • 1
  • 3
  • 7
  • 1
    You had this project in version control and backed up, right? – Falmarri Jul 18 '16 at 19:02
  • This question appears to be off-topic, since questions about general computing hardware and software are off-topic for Stack Overflow. And it doesn't directly involve tools used primarily for programming, since you deleted the project from the disk and didn't just remove the project from Eclipse. I would ask this question on [Super User](http://superuser.com/). – Jonny Henly Jul 18 '16 at 19:04
  • If you did not say to delete the actual file and folder, you can find your project in eclipse workspace folder. If you did remove permanently, then you cannot recover it. If your eclipse is still open, you can try Ctrl+Z or undo from menu. – Tin Jul 18 '16 at 19:12
  • @Tin OP states "I deleted the file from the disk." Also, "If you did remove permanently, then you cannot recover it." - That's not true, there is plenty of software designed specifically for file recovery. – Jonny Henly Jul 18 '16 at 19:19
  • @Tin undu-ed but then its only a .project file and a bin folder with a .project – mooL Jul 18 '16 at 19:21

2 Answers2

4

Another way to do it (besides martinhh's answer), is to:

  • Right click the project
  • Restore from Local History
Shirkam
  • 744
  • 6
  • 20
alan9uo
  • 1,011
  • 1
  • 11
  • 17
2

Eclipse has a local history that is stored in

.metadata/.plugins/org.eclipse.core.resources/.history/

I am not sure, if these files are deleted together with the project. I would recommend you check the files by date if you remember when you made the last changes. Or if you remember e.g. a class name you can use grep.

martinhh
  • 336
  • 2
  • 10
  • +1; I had deleted a file in Eclipse a few hours ago that was not visible in the *Restore from Local History* window. Instead I manually checked all directories at the *.history* location and eventually managed to find my lost file there. – SND Aug 28 '19 at 11:07