Return directory node for dirs