MCPcopy Create free account
hub / github.com/StepfenShawn/ShitCodify / fileToNode

Function fileToNode

src/utils/promptGenerator.ts:185–191  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

183
184// 辅助函数:将单个文件转换为树节点
185export function fileToNode(file: File): FileNode {
186 return {
187 name: file.name,
188 path: file.name,
189 isDirectory: false
190 };
191}
192
193// 辅助函数:将树节点转换为文件
194export function nodeToFile(node: FileNode): File {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected