copy and remove file