HOW TO COPY FILES IN GODOT code example
Example: how to copy external files with code godot
var dir = Directory.new()
dir.copy("res://files/sprite_image.tex", "res://sprite_image.tex")
var dir = Directory.new()
dir.copy("res://files/sprite_image.tex", "res://sprite_image.tex")