listOpfsDirectory function

Future<List<String>> listOpfsDirectory(
  1. String path
)

Lists entry names of an OPFS directory (diagnostics/tests).

Throws WebFileSystemException with NotFoundError when path is not an existing directory.

Implementation

Future<List<String>> listOpfsDirectory(String path) async {
  final pool = await OpfsWorkerPool.instance();
  return pool.manifest.list(path);
}