Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deta/surf
/ checkFileExists
Function
checkFileExists
app/src/main/utils.ts:177–184 ·
view source on GitHub ↗
(path: string)
Source
from the content-addressed store, hash-verified
175
}
176
177
export
async
function
checkFileExists(path: string) {
178
try {
179
await
fsp.access(path)
180
return
true
181
} catch {
182
return
false
183
}
184
}
185
186
/**
187
* Get the content
type
of a file
Callers
1
moveTempFile
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected