An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: API `listDocsByPath` add an optional parameter `maxListCount` Fix https://github.com/siyuan-note/siyuan/issues/7993
Liang Ding31e1966ffa38
diff --git a/kernel/api/filetree.go b/kernel/api/filetree.goindex f1018838c6..4ecc3163f5 100644--- a/kernel/api/filetree.go+++ b/kernel/api/filetree.go@@ -18,6 +18,7 @@ package apiimport ("fmt"+ "math""net/http""path""regexp"@@ -621,7 +622,11 @@ func listDocsByPath(c *gin.Context) {}maxListCount := model.Conf.FileTree.MaxListCountif arg["maxListCount"] != nil {+ // API `listDocsByPath` add an optional parameter `maxListCount` https://github.com/siyuan-note/siyuan/issues/7993maxListCount = int(arg["maxListCount"].(float64))+ if 0 == maxListCount {+ maxListCount = math.MaxInt+ }}files, totals, err := model.ListDocTree(notebook, p, sortMode, flashcard, maxListCount)