Hello,
The documentation of moveFile says "If dest already exists, it will be overwritten", but it raises an exception:
.nim(94) raiseOSError
Error: unhandled exception: No se puede crear un archivo que ya existe.
Additional info: "(\"b86257abd65a5deb.tmp\", \"test.txt\")" [OSError]
It seems the flag MOVEFILE_REPLACE_EXISTING of the Windows function MoveFileEx is missing.