update file struct