MCPcopy 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
279async function readDir(dir) {
280 if (exists(dir)) {
281 return fs.promises.readdir(dir)
282 }
283 return []
284}
285
286function rel(dir) {
287 return path.relative(process.cwd(), dir)

Callers 2

fix.jsFile · 0.85
dirsAreTheSameFunction · 0.85

Calls 1

existsFunction · 0.85

Tested by

no test coverage detected