Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-13 17:16:25 +08:00
parent 622d1d1d54
commit 16e9dec9b3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -103,6 +103,7 @@ func listDocTree(c *gin.Context) {
}
p := arg["path"].(string)
p = strings.TrimSuffix(p, ".sy")
var doctree []*DocFile
root := filepath.Join(util.WorkspaceDir, "data", notebook, p)
dir, err := os.ReadDir(root)