copyFile函数修改