File tree state saving