* Create a `FileDataSource`. * * @param input Local file path, or `File`/`Blob`/`Uint8Array` object to * read. Local file only works in node environment. * @param options Options passed to the underlying `FileChunkIterator`s, * such as {chunksize: 1024}.
(
protected input: FileElement|string,
protected readonly options: FileChunkIteratorOptions = {})
| 37 | * such as {chunksize: 1024}. |
| 38 | */ |
| 39 | constructor( |
| 40 | protected input: FileElement|string, |
| 41 | protected readonly options: FileChunkIteratorOptions = {}) { |
| 42 | super(); |
| 43 | } |
| 44 | |
| 45 | async iterator(): Promise<ByteChunkIterator> { |
| 46 | if (isLocalPath(this.input) && env().get('IS_NODE')) { |
nothing calls this directly
no outgoing calls
no test coverage detected