Edit directory structure