* 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)
| 236 | * file contents. |
| 237 | */ |
| 238 | function read(aPath) { |
| 239 | return checkedCall((callback) => fs.readFile(aPath, callback)) |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * Writes to a file. |
nothing calls this directly
no test coverage detected