update directory struct