CopyFileA
Copies an existing file to a new path.
Module: Windows
Microsoft documentation: CopyFileA
Signature
rux
func CopyFileA(existingFileName: *const char8,
newFileName: *const char8, failIfExists: bool32) -> bool32;Both names must be null-terminated ANSI paths. When failIfExists is nonzero, the call fails rather than overwriting an existing destination. Returns nonzero on success.
See also
MoveFileA— move or renameFilesystem— filesystem API overview