Put temporary file in final directory.