MCPcopy
hub / github.com/vercel/next.js / checkAccess

Function checkAccess

turbopack/packages/devlow-bench/src/file.ts:31–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 try {
30 for (const path of elements) {
31 const checkAccess = () =>
32 access(path, constants.F_OK)
33 .then(() => true)
34 .catch(() => false)
35 if (!(await checkAccess())) {
36 let resolveCheckAgain = () => {}
37 const watcher = watch(dirname(path), () => {

Callers 1

waitForFileFunction · 0.85

Calls 3

accessFunction · 0.85
thenMethod · 0.80
catchMethod · 0.45

Tested by

no test coverage detected