The Copy (Path) function throws an error if file the file exist and the “Replace Existing” pin is enabled. See screenshot and atttached patch. Happens in 2021.10 and 2022.5.0 preview. Does not happen with Copier Node or FileCopier Node.
CopyBug.zip (2.2 KB)
Copier[IO] also doesn’t work in that case, doesn’t throw an exception though.
Just speculating, but you may have to run as admin to have the privilege to overwrite files programmatically.