update the file struct