MCPcopy
hub / github.com/codeceptjs/CodeceptJS / fileExists

Function fileExists

lib/utils.js:58–60  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

56}
57
58export const fileExists = function (filePath) {
59 return fs.existsSync(filePath)
60}
61
62export const isFile = function (filePath) {
63 let filestat

Callers 15

loadTranslationFunction · 0.90
loadMethod · 0.90
loadPromptsFunction · 0.90
createOutputDirFunction · 0.90
takeScreenshotFunction · 0.90
enableAuthBeforeEachTestFunction · 0.90
loadCookiesFromFileFunction · 0.90
init.jsFile · 0.90
finishFunction · 0.90
installFunction · 0.90
configMigrate.jsFile · 0.90
finishFunction · 0.90

Calls

no outgoing calls

Tested by 1

testFunction · 0.72