Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/epicweb-dev/full-stack-foundations
/ isFile
Function
isFile
epicshop/fix.js:271–277 ·
view source on GitHub ↗
(p)
Source
from the content-addressed store, hash-verified
269
}
270
271
function
isFile(p) {
272
try {
273
return
fs.statSync(p).isFile()
274
} catch (error) {
275
return
false
276
}
277
}
278
279
async
function
readDir(dir) {
280
if
(exists(dir)) {
Callers
2
isSameFile
Function · 0.85
dirsAreTheSame
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected