-->

Retrieve/Recover deleted Netbeans project

2020-01-30 06:53发布

问题:

I was just working on my Netbeans project and accidentally deleted it and don't know how to recover it.

Is there a tmp folder that the deleted project is stored in.

Or am I forever doomed?

Thanks, Lucas

回答1:

http://www.recuva.com/

saved me countless times when I first started with Visual C# opening the IDE and making mini programs without saving. All your files are stored in a temporary folder and exiting Visual C# wipes them. Just do a recuva scan and sort files found by modification time. Deleted files are recoverable, overwritten files however are a different story, so run the program as soon as possible.



回答2:

Do not panic. Its very easy. Follow the steps:

  1. Right click on the folder/directory that the files had been deleted.

  2. Choose Local History – Restore Deleted

  3. Done



回答3:

If you accidentally delete a folder on Netbean, the way to recover it is as follows. You can't revert deleted folders but you can revert deleted files. Follow these steps.

  1. Recreate the folder you deleted in your Netbean project. (You may not be able to create the folder within Netbean, in that case you can use mkdir command to create the folder )
  2. Right click that folder in Netbeans and go to History -> revert deleted (you should see a list of deleted files that relate to that particular folder.
  3. Repeat for each folder and sub-folder

Note: I do not know if this works on windows, I know it worked for me on Linux. I also don't know if this works after you have closed Netbeans.

hope it helps someone.



回答4:

You have a problem of package/directory/file deleted in netbeans? Don't panic it is simple just:

  1. open your netbeans IDE
  2. go to projects
  3. go to the package where your project folder was
  4. right click on it
  5. go to local history, then go to revert deleted
  6. it is done. Wait a moment!

I think it will help you. Enjoy your code please.



回答5:

Actually, easier then trying to load a project that does not exist in the project explorer of netbeans.

If you still have the files locally, just choose Open Project and your lost project will be restored to the Project explorer of netbeans.



回答6:

I don't know if there is a temp folder. Windows search engine doesn't work to find it. If you delete the source file by using safely delete;

On Netbeans Refactor-Undo[Safely Delete] option can be used to recover...