An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Do not remove .tmp file when listing doc tree https://ld246.com/article/1702621572239
Daniel0547f278399b
diff --git a/kernel/model/box.go b/kernel/model/box.goindex 58076f9c42..0b37bfad97 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -257,14 +257,6 @@ func (box *Box) Ls(p string) (ret []*FileInfo, totals int, err error) {if util.IsReservedFilename(name) {continue}- if strings.HasSuffix(name, ".tmp") {- // 移除写入失败时产生的临时文件- removePath := filepath.Join(util.DataDir, box.ID, p, name)- if removeErr := os.Remove(removePath); nil != removeErr {- logging.LogWarnf("remove tmp file [%s] failed: %s", removePath, removeErr)- }- continue- }totals += 1fi := &FileInfo{}