edit directory struct