MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / isFile

Function isFile

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

Source from the content-addressed store, hash-verified

60}
61
62export const isFile = function (filePath) {
63 let filestat
64 try {
65 filestat = fs.statSync(filePath)
66 } catch (err) {
67 if (err.code === 'ENOENT') return false
68 }
69 if (!filestat) return false
70 return filestat.isFile()
71}
72
73export const getParamNames = function (fn) {
74 if (fn.isSinonProxy) return []

Callers 1

loadMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected