MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / createHandleStreamReader

Function createHandleStreamReader

frontend/src/lib/streamReader.ts:212–218  ·  view source on GitHub ↗
(
    handle: FileSystemFileHandle,
    options: StreamReaderOptions = {}
  )

Source from the content-addressed store, hash-verified

210 * Create a StreamReader from a FileSystemFileHandle
211 */
212 export async function createHandleStreamReader(
213 handle: FileSystemFileHandle,
214 options: StreamReaderOptions = {}
215 ): Promise<StreamReader> {
216 const file = await handle.getFile();
217 return createFileStreamReader(file, options);
218 }
219
220 /**
221 * Utility to sample a large file to see its structure

Callers

nothing calls this directly

Calls 1

createFileStreamReaderFunction · 0.85

Tested by

no test coverage detected