Updated copy_directory to return a list of copied files