I have a python file named
initialization.py. When trying to copy-paste contents into a blank file, I used
ctrl + x to copy/cut, closed the original file, and accidentally used
ctrl + x again in the blank document of my text editor, then proceeded to save the blank document with the same filename
initialization.py. So when I use
ctrl + v, I am pasting empty space rather than the code. Is there a way to retrieve the contents of the python file before it was overwritten?
In case it's relevant, I'm using macOS High Sierra 10.13.6 and my text editor is Atom 1.37.0.
I followed the steps posted in this answer, but now I'm not sure what to do next.