Fixed a problem when moving the transferred file from temp to dst_path