Atom deletes the files. Is there a way to recover them?

I am using atom in mac. It deletes all the opened files from disk. When I try to close the opened files, it asked me to save the file which i didn’t change in the editor. And I saved it . Then it deleted all the other files which was not opened from disk. Is there a way to recover the files. It is my one month project work. I desperately want those files. Could someone help me please?

atom version : 1.6.0

1 Like

Atom doesn’t permanently delete files. It may move them to the trash on the other hand. Have you checked the trash? Do you have any backups? Are you using source control?

@leedohm - Thanks for the response. It deleted permanently. I checked in the Trash. I tried different recovery softwares, but no luck. Yeah I am using git.

I’m really sorry that happened. I’ve never seen Atom just go about and delete files at random. If you’ve got some suggestions on how to replicate that, I’d be interested to hear them.

Also I use go-plus package.And this package uses some other packages I guess. I am not sure which one caused this :frowning:

Normally, I would say that the first thing to do is attempt to replicate the problem in Safe Mode. To launch Safe Mode:

  1. Completely exit all instances of Atom
  2. Launch Atom with the command atom --safe

Of course, I can understand not wanting to try and replicate a problem that may have deleted a bunch of your files. Perhaps you might want to create a repository with a bunch of stuff in it you don’t care about and try to replicate the problem there?

I’ve just been trying to find someone else with this experience, as it’s just happened to me. I was editing a file, and hit a short cut (clearly the wrong one, though I don’t know what exactly I hit). All of the files in the sidebar went orange. I didn’t know what that was, and suspected I’d toggled some selection state (I’m new to Atom). So I restarted Atom, and the project was gone.

No big deal I thought, I tabbed to Tower (my Git client of choice) and went to reset changes to last commit, as I had two days of development on this project all committed to my develop branch, though hadn’t yet pushed it anywhere…huge mistake in retrospect. Oddly, no changes in working copy. I went to view the commit history and it was empty. I went to finder, and the entire project has been deleted.

Again, no big deal I thought. I went to Trash. Nothing… I didn’t know an app could even delete entire folders from my machine and skip the trash entirely!..

Unlike the other poster, I don’t have any packages installed, as I was just learning how to use Atom and wanted to learn how to use stock first.

In case it’s of use to anyone, I’m on a Mac running macOS 10.13.3, using Atom version 1.25.1 x64. Suffice to say, I’m finding a different text editor.

I’d add, I haven’t been able to replicate it. Even trying to directly delete a root folder gives me a dialog saying it can’t be done. I’m pretty sure my cursor was in the editing pane and not the sidebar anyway. Unreal bug…

So has no one found a solution to this problem?

I am sitting with the same problem right now! I wanted to push my work to a repository in Git Lab that I was invited to work on. When I wanted to sage the work, there were files and folders from work I have done offline in the last months, so I could not distinguish between the files I wanted to push and all other work I have done.

So there is no need to replicate, I can tell you outright, I clicked the three dots on the top left of the atom editor in the git plane and selected “Discard all changes” hoping this would clear the plane, and I could save and fill it with the last weeks work to push…

Well boys and girls, Atom just deleted permanently all my work!!!

Not only this weeks work, but the last few months of work that I did offline, on my own machine.

Any suggestions?

Actually, your descriptions reads like you deleted all your work

idleberg I last without Waring more than a years work!

@3otes: John, I am sorry to hear about your experience. There is nothing that I can directly help you with.

As a Windows user I have had issues with loosing work (unrelated to Atom). There are “undelete” applications that helped me to recover things that I deleted “permanently”. May I suggest you source such a app for your OS to at least get back as much as you can.

Warning: Do not wait too long. The OS marked the areas as deleted. You will have no chance if new data writes over those marked areas.

I agree with this advice. If the data is valuable and you act quickly there is a chance of data recovery but it requires your disk drive to be unmounted and forensically analysed by another host operating system. Do not install any further software at this stage (for reasons given by @snoop). But first clarify by replying here if you do have access to another computer for such work. Then the workflow can be mapped out.

Added note. Be aware that such recovery process will also recover data which was genuinely deleted and you need some repository such as a formatted USB external drive to place the (hopefully) recovered files. Then you have the heck of a job to sort the recovered data.

After the pain of such an exercise you realise the best insurance policy is to keep daily backups.

No, but that fact that you clicked it without understanding the consequences is in your responsibility. It’s not as if Atom deleted your files randomly.

I agree though, that there should be a confirmation dialog for any destructive action. But that only helps when people have some degree of awareness and don’t just click on anything without thinking.

I guess that’s part of the reason why I still prefer using Git on the command-line.

That’s not how Git works

There likely is no solution to this, even with recovery tools. Not with version-controlled files. Also, while I understand frustration that arises from situations like these, being rude is no solution.

One final remark to help you avoid making the same mistake in the future: “Do commit early and often”

Learning from other users’ mistakes with GitHub I have just read this.

Thank you for your reply d_l

Thnk’s snoop I tired “recuva” it was not successful, busy running iSkysoft to see if I can recover something.

I suggest trying photorec but I repeat that you should not save any recovered files in the same drive where they were deleted in error. Or you will find that your files you are trying to recover are overwritten by the recovered files. A catch 22. This is why you need an external repository such as flash drive. And final note: photorec does not recover the filenames or their paths.

1 Like

Thanks d_l, I have been running it since yesterday, so I hope it is the answer. If it takes that long to run then it is probably really thorougher… Or my flash drive is slow :wink:

I should have mentioned that some runs take a very long time, perhaps overnight or longer, depending on the size of the drive being analysed.
Another factor is to try USB 3.0 which is faster than USB 2.0. But you learn the ropes by trial and error. As I wrote earlier the files will be numbered rather than the original filename and after dumping the recovered data into an external drive you need to figure out a workflow to recover. I suggest that this Atom forum is not the best forum for picking up such data recovery tips. Try the testdisk/photorec source forum. And there are many suggestions for using photorec in (dare I write this) ubuntuforums.org.

[Later edit] There are some post recovery tips here for organising recovered files.

1 Like