API Reference > imodeljs-backend > iModels > SnapshotDb > openFile openFile MethodStatic Open a read-only iModel snapshot. openFile(path: string, opts?: SnapshotOpenOptions): SnapshotDb see SnapshotDb.close throws IModelError If the file is not found or is not a valid snapshot. Parameter Type Description path string the full path of the snapshot iModel file to open. opts SnapshotOpenOptions Returns - SnapshotDb Defined in core/backend/src/IModelDb.ts Line 2505 Last Updated: 12 June, 2024