MCPcopy Create free account
hub / github.com/nodejs/node / writeFile

Method writeFile

lib/internal/vfs/file_handle.js:185–188  ·  view source on GitHub ↗

* Writes data to the file (replacing content). * @param {Buffer|string} data The data to write * @param {object} [options] Options * @returns {Promise }

(data, options)

Source from the content-addressed store, hash-verified

183 * @returns {Promise<void>}
184 */
185 async writeFile(data, options) {
186 this.#checkClosed('write');
187 throw new ERR_METHOD_NOT_IMPLEMENTED('writeFile');
188 }
189
190 /**
191 * Writes data to the file synchronously (replacing content).

Callers

nothing calls this directly

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected