yongkangchen / remote-sync

Upload your files to remote host after every change. Both SCP/SFTP and FTP are supported.
https://atom.io/packages/remote-sync
MIT License
237 stars 71 forks source link

Delete Folder is Asking for Trouble #481

Open jessebett opened 6 years ago

jessebett commented 6 years ago

I just accidentally clicked Delete Folder from the dropdown menu on the entire project folder.... This immediately deletes my remote folder, which since I have remote deletes delete locally, immediately deletes my local folder. This is not undoable as far as I can tell. So I just deleted both my local and remote copies of my project on a mis-click in a drop-down menu.

Don't know what the solution here is, maybe have one extra step for folder delete? Idk, pretty severe.

Good thing I had most of my changes backed up on git...

dotku commented 6 years ago

paste report?

fossephate commented 6 years ago

I almost lost a couple days worth of work because of this, a confirmation of some kind is seriously needed, it's way too easy to accidentally click delete folder

I happened to have most of the files open in an editor but I still had to copy and paste everything after re-cloning my entire project, and I still lost some stuff that was .gitignore'd and everything I didn't have open at the time