* Creates a write stream. * @param {string | Buffer | URL} path * @param {string | { * flags?: string; * encoding?: string; * fd?: number | FileHandle; * mode?: number; * autoClose?: boolean; * emitClose?: boolean; * start: number; * fs?: object | null; * signal?: AbortS
(path, options)
| 3772 | * @returns {WriteStream} |
| 3773 | */ |
| 3774 | function createWriteStream(path, options) { |
| 3775 | const h = vfsState.handlers; |
| 3776 | if (h !== null) { |
| 3777 | const result = h.createWriteStream(path, options); |
| 3778 | if (result !== undefined) return result; |
| 3779 | } |
| 3780 | lazyLoadStreams(); |
| 3781 | return new WriteStream(path, options); |
| 3782 | } |
| 3783 | |
| 3784 | const lazyGlob = getLazy(() => require('internal/fs/glob').Glob); |
| 3785 |
no test coverage detected
searching dependent graphs…