Reconsruct DIR tree.