This allows partial transfers, by overwriting the dest file with the tempfile even if the transfer was not completed