(path, mode = F_OK)
| 1309 | // All of the functions are defined as async in order to ensure that errors |
| 1310 | // thrown cause promise rejections rather than being thrown synchronously. |
| 1311 | async function access(path, mode = F_OK) { |
| 1312 | const h = vfsState.handlers; |
| 1313 | if (h !== null) { |
| 1314 | const promise = h.access(path, mode); |
| 1315 | if (promise !== undefined) { await promise; return; } |
| 1316 | } |
| 1317 | return await PromisePrototypeThen( |
| 1318 | binding.access(getValidatedPath(path), mode, kUsePromises), |
| 1319 | undefined, |
| 1320 | handleErrorFromBinding, |
| 1321 | ); |
| 1322 | } |
| 1323 | |
| 1324 | async function cp(src, dest, options) { |
| 1325 | options = validateCpOptions(options); |
nothing calls this directly
no test coverage detected
searching dependent graphs…