add the function of file copy