MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / isEmptyObject

Function isEmptyObject

src/core/resourceProcessor.js:195–200  ·  view source on GitHub ↗

* 检查对象是否为空 * @param {Object} obj 要检查的对象 * @returns {boolean} 如果对象为空返回 true,否则返回 false

(obj)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected