* Synchronously tests a user's permissions for the file or * directory specified by `path`. * @param {string | Buffer | URL} path * @param {number} [mode] * @returns {void}
(path, mode)
| 265 | * @returns {void} |
| 266 | */ |
| 267 | function accessSync(path, mode) { |
| 268 | const h = vfsState.handlers; |
| 269 | if (h !== null) { |
| 270 | const result = h.accessSync(path, mode); |
| 271 | if (result !== undefined) return; |
| 272 | } |
| 273 | binding.access(getValidatedPath(path), mode); |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * Tests whether or not the given path exists. |
nothing calls this directly
no test coverage detected
searching dependent graphs…