File recovery

I had an issue with my internet yesterday while editing my script.yaml file and it ended up getting deleted. Is there a way to recover just this file without having to flash an older snapshot?

If you are using notepad++, and have the backup option configured, you can do a restore.

There are multiple ways to edit files. How were editing it, and what editor?

I was using sublime text and the file is still there just now when I open it, it is blank.

Without knowing the OS I can only suggest you ask Google.
There is some mention of a Session.sublime_session file, but the name suggests it only holds info for the current session. You might be lucky and find an older copy named Session.sublime_session~

and to add the obvious…

make backups.:wink: