MCPcopy Create free account
hub / github.com/epicweb-dev/full-stack-foundations / exists

Function exists

epicshop/fix.js:261–269  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

259}
260
261function exists(p) {
262 if (!p) return false
263 try {
264 fs.statSync(p)
265 return true
266 } catch (error) {
267 return false
268 }
269}
270
271function isFile(p) {
272 try {

Callers 5

fix.jsFile · 0.85
updateTsconfigFunction · 0.85
updateDataDbFunction · 0.85
dirsAreTheSameFunction · 0.85
readDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected