Update directory struct