copy files to the target directory