godotgdscriptdata-recoveryrecycle-bin

How to recover items moved to trash in Godot and where to find the recycling bin?


So earlier on I was attempting to code basic scripts on Godot and I may have deleted a Button.gd source code, so far the output is perfectly fine but the debugger displays an error even after making a new scene entirely. I'd like to try and recover the Button.gd source code or maybe even find a way to stop the error from appearing. If anyone knows how and where to access Godot's recycling/trash bin I'd appreciate the help!

https://i.sstatic.net/qrlk7.png


Solution

  • When deleting files from Godot, it will try to send them to system recycle bin.

    On Windows and OSX Godot will use the system API to delete files. And Godot will not try to create a recycle bin.

    On Linux (or if you build Godot for other unix or bsd based systems) when Godot does not find a recycle bin, it might attempt to create one. Where the files will end depends on the particular system/distro.

    As far as I can tell, if you delete files in the web version of Godot, they are gone.


    If your files are missing, and you cannot find them in any recycle bin, it is possible that recovery software (such as Piriform Recuva or EasUs data recovery) could be able to get them back.

    I'll also point out that if you were using version control software (such as git or mercurial), it would allow you to revert changes.