edit the directory structure