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

Function createMetaFile

src/utils/fileManager.js:106–125  ·  view source on GitHub ↗

* 创建元数据文件 * @param {Set} fileMap 文件映射表 * @returns {Promise }

(fileMap)

Source from the content-addressed store, hash-verified

104 };
105
106 await this.writeFile('Scripts', `${filename}.meta`, meta);
107 }
108 } catch (err) {
109 logger.error('创建元数据文件时出错:', err);
110 throw err;
111 }
112 },
113
114 /**
115 * 复制文件
116 * @param {string} source 源文件路径
117 * @param {string} target 目标文件路径
118 * @returns {Promise<void>}
119 */
120 async copyFile(source, target) {
121 try {
122 await this.ensureDirectoryExists(path.dirname(target));
123 await fsp.copyFile(source, target);
124 } catch (err) {
125 logger.error(`复制文件 ${source} 到 ${target} 时出错:`, err);
126 throw err;
127 }
128 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected