update dir struct