Godot Version
4.2
Question
I’m working on my save system and I want to move some files from a temporary folder to the save folder. However no matter what I do I cant seem to get the files to move. Everything I have tried has resulted in an error or the script works but the files haven’t changed locations.
var tempDir = DirAccess.open("user://HINATempFolder")
print(tempDir.get_files())
var tempfiles = tempDir.get_files()
var s: Array[String]
s.assign(tempfiles)
for i in s.size():
tempDir.copy("user://HINATempFolder/" +s[i],
"HINASaveFolder")
This the relevant code. The folders do exist and are created if they don’t in another part of the code.