Collapsing the directory