Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dlipdhunter | |
Old Version | Published before Godot 3 was released. |
Hi, I am trying to create a plugin to import/create tileset from sprite image. I want to make sure that the chosen sprite file resides in the res:// folder. If it is not, then I want to copy the sprite file to res:// folder. I checked the GDScript help file, but I couldn’t find any method for this. Can anyone share how you will copy a file from one location to another in GDScript?
Thanks in advance.