copy the directory