* Checks file accessibility. * @param {string} path The path to check * @param {number} [mode] Access mode * @returns {Promise }
(path, mode)
| 449 | * @returns {Promise<void>} |
| 450 | */ |
| 451 | async access(path, mode) { |
| 452 | const stats = await this.stat(path); |
| 453 | this.#checkAccessMode(path, stats, mode); |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Checks file accessibility synchronously. |
no test coverage detected