Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ exists
Function
exists
scripts/buildIcons.js:78–86 ·
view source on GitHub ↗
(f)
Source
from the content-addressed store, hash-verified
76
}
77
78
async
function
exists(f) {
79
try {
80
await
fs.promises.access(f);
81
return
true;
82
} catch (e) {
83
if
(e.code ===
'ENOENT'
)
return
false;
84
else
throw e;
85
}
86
}
Callers
1
buildIcons.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected