* check file * @param {*} files * @returns
(files = [])
| 69 | * @returns |
| 70 | */ |
| 71 | function 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 |
no outgoing calls
no test coverage detected