Edit a directory