Implementing file copying.