MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / write

Function write

javascript/selenium-webdriver/io/index.js:250–252  ·  view source on GitHub ↗

* Writes to a file. * * @param {string} aPath Path to the file to write to. * @param {(string|!Buffer)} data The data to write. * @return {!Promise} A promise that will resolve when the operation has * completed.

(aPath, data)

Source from the content-addressed store, hash-verified

248 * completed.
249 */
250function write(aPath, data) {
251 return checkedCall((callback) => fs.writeFile(aPath, data, callback))
252}
253
254/**
255 * Creates a directory.

Callers

nothing calls this directly

Calls 1

checkedCallFunction · 0.85

Tested by

no test coverage detected