readManifest static method

Future<WebFileManifest?> readManifest(
  1. String path
)

Reads and decodes the newest valid manifest for path without opening the file (no sync handle is taken, so no lock is involved).

Implementation

static Future<WebFileManifest?> readManifest(String path) async {
  final normalized = normalizeLogicalPath(path);
  final pool = await OpfsWorkerPool.instance();
  final loaded = await _loadBestManifest(pool.manifest, normalized);
  return loaded?.state.snapshot(slot: loaded.slot);
}