MCPcopy 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
271function isFile(p) {
272 try {
273 return fs.statSync(p).isFile()
274 } catch (error) {
275 return false
276 }
277}
278
279async function readDir(dir) {
280 if (exists(dir)) {

Callers 2

isSameFileFunction · 0.85
dirsAreTheSameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected