MCPcopy
hub / github.com/epicweb-dev/react-performance / exists

Function exists

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

Source from the content-addressed store, hash-verified

117}
118
119function exists(p) {
120 if (!p) return false
121 try {
122 fs.statSync(p)
123 return true
124 } catch (error) {
125 return false
126 }
127}
128
129async function readDir(dir) {
130 if (exists(dir)) {

Callers 4

fix.jsFile · 0.85
copyTestFilesFunction · 0.85
updateTsconfigFunction · 0.85
readDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected