Update hierarchy of directories