simplify directoryTreeElement