* Reads a file synchronously. * @param {string} filePath The path to read * @param {object|string} [options] Options or encoding * @returns {Buffer|string}
(filePath, options)
| 258 | * @returns {Buffer|string} |
| 259 | */ |
| 260 | readFileSync(filePath, options) { |
| 261 | const providerPath = this.#toProviderPath(filePath); |
| 262 | return this[kProvider].readFileSync(providerPath, options); |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Writes a file synchronously. |
no test coverage detected