MCPcopy Create free account
hub / github.com/53AI/53AIHub / processLightweightFile

Method processLightweightFile

api/service/file_processor.go:124–129  ·  view source on GitHub ↗

processLightweightFile 处理轻量级文件(md, txt)- 简化保护策略

(task *UploadTask)

Source from the content-addressed store, hash-verified

122
123// processLightweightFile 处理轻量级文件(md, txt)- 简化保护策略
124func (fp *FileProcessor) processLightweightFile(task *UploadTask) error {
125 fmt.Printf("使用轻量级处理策略 - 文件: %s\n", task.FileHeader.Filename)
126
127 // 轻量级文件处理:重点保证事务原子性,不保存原始文件
128 return fp.processWithTransactionProtection(task, false)
129}
130
131// processHeavyweightFile 处理重量级文件(html, htm)- 完整保护策略
132func (fp *FileProcessor) processHeavyweightFile(task *UploadTask) error {

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.80

Tested by

no test coverage detected