MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / read

Function read

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

* Reads the contents of the given file. * * @param {string} aPath Path to the file to read. * @return {!Promise<!Buffer>} A promise that will resolve with a buffer of the * file contents.

(aPath)

Source from the content-addressed store, hash-verified

236 * file contents.
237 */
238function read(aPath) {
239 return checkedCall((callback) => fs.readFile(aPath, callback))
240}
241
242/**
243 * Writes to a file.

Callers

nothing calls this directly

Calls 2

checkedCallFunction · 0.85
readFileMethod · 0.80

Tested by

no test coverage detected