restore dir struct