* Creates a readable stream with a default `highWaterMark` * of 64 KiB. * @param {string | Buffer | URL} path * @param {string | { * flags?: string; * encoding?: string; * fd?: number | FileHandle; * mode?: number; * autoClose?: boolean; * emitClose?: boolean; * start: number
(path, options)
| 3744 | * @returns {ReadStream} |
| 3745 | */ |
| 3746 | function createReadStream(path, options) { |
| 3747 | const h = vfsState.handlers; |
| 3748 | if (h !== null) { |
| 3749 | const result = h.createReadStream(path, options); |
| 3750 | if (result !== undefined) return result; |
| 3751 | } |
| 3752 | lazyLoadStreams(); |
| 3753 | return new ReadStream(path, options); |
| 3754 | } |
| 3755 | |
| 3756 | /** |
| 3757 | * Creates a write stream. |
no test coverage detected
searching dependent graphs…