* 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)
| 248 | * completed. |
| 249 | */ |
| 250 | function write(aPath, data) { |
| 251 | return checkedCall((callback) => fs.writeFile(aPath, data, callback)) |
| 252 | } |
| 253 | |
| 254 | /** |
| 255 | * Creates a directory. |
nothing calls this directly
no test coverage detected