()
| 43 | } |
| 44 | |
| 45 | async iterator(): Promise<ByteChunkIterator> { |
| 46 | if (isLocalPath(this.input) && env().get('IS_NODE')) { |
| 47 | // tslint:disable-next-line:no-require-imports |
| 48 | const fs = require('fs'); |
| 49 | this.input = fs.readFileSync((this.input as string).slice(7)); |
| 50 | } |
| 51 | // TODO(kangyizhang): Add LocalFileChunkIterator to split local streaming |
| 52 | // with file in browser. |
| 53 | return new FileChunkIterator(this.input as FileElement, this.options); |
| 54 | } |
| 55 | } |
nothing calls this directly
no test coverage detected