Like the title said, I lost my code, which costed more than half of a day.
All possible rescue solutions failed:
- Shell command
mv
used, which rewrited the source file. It’s incurable.
- I supposed to upload the code to Github right after this rename operation, but I didn’t.
- Dropbox syncing was paused.
- No backup, even deleted old version in the trash.
- Text editor was closed. If not it will store the code in RAM.
Oh my god, it broke my heart.