* 检查对象是否为空 * @param {Object} obj 要检查的对象 * @returns {boolean} 如果对象为空返回 true,否则返回 false
(obj)
| 193 | |
| 194 | async readFiles(filePath, first) { |
| 195 | try { |
| 196 | const entries = await fsp.readdir(filePath, { withFileTypes: true }); |
| 197 | |
| 198 | for (const entry of entries) { |
| 199 | const fullPath = path.join(filePath, entry.name); |
| 200 | if (entry.isFile()) { |
| 201 | this.fileList.push(fullPath); |
| 202 | const key = this.getKeyFromPath(fullPath); |
| 203 | this.fileMap.set(key, fullPath); |
nothing calls this directly
no outgoing calls
no test coverage detected