Add `update_file!` method