An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: 资源文件重命名 https://github.com/siyuan-note/siyuan/issues/3454
Liang Ding3044f97f42bc
diff --git a/kernel/model/assets.go b/kernel/model/assets.goindex 6cc0978abb..7c1bab71bc 100644--- a/kernel/model/assets.go+++ b/kernel/model/assets.go@@ -448,11 +448,6 @@ func RenameAsset(oldPath, newName string) (err error) {util.PushEndlessProgress(Conf.Language(110))defer util.PushClearProgress()- notebooks, err := ListNotebooks()- if nil != err {- return- }-newName = strings.TrimSpace(newName)newName = gulu.Str.RemoveInvisible(newName)if path.Base(oldPath) == newName {@@ -467,13 +462,17 @@ func RenameAsset(oldPath, newName string) (err error) {return}- newPath := util.AssetName(newName)+ newPath := util.AssetName(newName) + filepath.Ext(oldPath)if err = gulu.File.Copy(filepath.Join(util.DataDir, oldPath), filepath.Join(util.DataDir, newPath)); nil != err {util.LogErrorf("copy asset [%s] failed: %s", oldPath, err)return}luteEngine := NewLute()+ notebooks, err := ListNotebooks()+ if nil != err {+ return+ }for _, notebook := range notebooks {pages := pagedPaths(filepath.Join(util.DataDir, notebook.ID), 32)for _, paths := range pages {