Ok so I accidentally deleted a folder that I was working on. Somehow the python script is still running (I was testing some stuff) in the terminal and it's running fine. It's under a cycle that never ends so it will keep running until I kill it. So I've figured that the file has to exist somewhere I'm using the visual studio code to run and edit the code, and i'm new to programming, just learning the basics of python. But the file was kinda important, so it would be cool to recover it.
Asked
Active
Viewed 43 times
1
-
Why don't you save it from vs code? Press ctrl+s and check the folder that you are working on it. – Mert Köklü Dec 29 '19 at 00:06
-
The editor closed when I deleted it – notPlancha Dec 29 '19 at 00:25
-
Take a look at this question: https://stackoverflow.com/questions/38531085/getting-the-source-code-of-a-running-python-script-externally – Thomas Dec 29 '19 at 01:20
-
The file certainly doesn’t exist: Python closes them after executing their contents to create in-memory objects. – Davis Herring Dec 29 '19 at 04:55
-
2Per Thomas, does this answer your question? [Getting the source code of a running Python script externally](https://stackoverflow.com/questions/38531085/getting-the-source-code-of-a-running-python-script-externally) – Davis Herring Dec 29 '19 at 04:55
-
It does, thank you! – notPlancha Dec 29 '19 at 10:16