Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode-bench
/ fileExists
Function
fileExists
src/util/fs.ts:4–11 ·
view source on GitHub ↗
(path: string)
Source
from the content-addressed store, hash-verified
2
import
{ constants } from
"node:fs"
;
3
4
export
async
function
fileExists(path: string) {
5
try {
6
await
access(path, constants.F_OK);
7
return
true;
8
} catch {
9
return
false;
10
}
11
}
Callers
1
generate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected