reset dir struct