Update dir struct