update directory hierarchy.