Replaced copydir with copy