The code inside of a python file randomly deleted, is there anyway to restore? It is a file of 3.70 KB but when opened and put into a text document there is nothing.
Code inside of a python file deleted
1.1k Views Asked by James Chambers At
2
There are 2 best solutions below
0
On
Since you are a new user I am assuming you are new to code development etc. Therefore, you should look at some versioning control tools like:
- SVN
- Github
- Gitlab
There are some more, but these are the most common ones. They are used to store your code and to revert you code if you mess up. They are also used to merge codes when different programmers are changing it. For the moment this will not help but will help in the future.
For now you may look at some restore tools but I highly doubt it that you are able to recreate the file. Another possiblity is: when you haven IDE to look at your command history. Maybe you executed the script and you can find the executed script as commands in the command history.
Open with python to see what it contains