update the dir-tree