Implemented "copyFiles".