Open ericoporto opened 1 day ago
File.Copy returns false if it fails and true if it executes correctly. File.Rename creates any dir necessary and also returns false if it fails or true if it succeeds.
IIRC File.Copy also should create directories.
But the engine only creates subdirs within the standard locations ($SAVEGAMEDIR$
and others), it is forbidden from creating directories outside of those.
https://github.com/adventuregamestudio/ags-manual/wiki/File
Some of the new File API were added in PR https://github.com/adventuregamestudio/ags/pull/2541
Additional documentation in the source code https://github.com/adventuregamestudio/ags/blob/e7fc02178d50e808134a651f4a9e07d3d7cc65e0/Engine/ac/file.cpp#L87
A few notes