MCPcopy Create free account
hub / github.com/CloudOrc/SolidUI / checkFileExist

Function checkFileExist

solidui-web/scripts/utils.js:71–81  ·  view source on GitHub ↗

* check file * @param {*} files * @returns

(files = [])

Source from the content-addressed store, hash-verified

69 * @returns
70 */
71function checkFileExist(files = []) {
72 let notFindList = []
73 for (let i = 0; i < files.length; i++) {
74 const file = files[i];
75 if (!fs.existsSync(file)) notFindList.push(file)
76 }
77 return {
78 status: notFindList.length === 0,
79 missFile: notFindList
80 }
81}
82
83/**
84 * logger

Callers 3

loadEnvFileFunction · 0.85
preCheckFunction · 0.85
getWebpackConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected