Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/epicweb-dev/full-stack-foundations
/ readDir
Function
readDir
epicshop/fix.js:279–284 ·
view source on GitHub ↗
(dir)
Source
from the content-addressed store, hash-verified
277
}
278
279
async
function
readDir(dir) {
280
if
(exists(dir)) {
281
return
fs.promises.readdir(dir)
282
}
283
return
[]
284
}
285
286
function
rel(dir) {
287
return
path.relative(process.cwd(), dir)
Callers
2
fix.js
File · 0.85
dirsAreTheSame
Function · 0.85
Calls
1
exists
Function · 0.85
Tested by
no test coverage detected