* Appends data to the file. * @param {Buffer|string} data The data to append * @param {object} [options] Options * @returns {Promise }
(data, options)
| 311 | * @returns {Promise<void>} |
| 312 | */ |
| 313 | async appendFile(data, options) { |
| 314 | this.#checkClosed('appendFile'); |
| 315 | const buffer = typeof data === 'string' ? |
| 316 | Buffer.from(data, options?.encoding) : data; |
| 317 | await this.write(buffer, 0, buffer.length, null); |
| 318 | } |
| 319 | |
| 320 | readableWebStream() { |
| 321 | throw new ERR_METHOD_NOT_IMPLEMENTED('readableWebStream'); |
nothing calls this directly
no test coverage detected