Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:memo: Add user guide chapter Database https://github.com/siyuan-note/siyuan/issues/10340

Daniel9d2a9c0da240
diff --git a/kernel/model/mount.go b/kernel/model/mount.go
index c7b8f942ed..988f530e6c 100644
--- a/kernel/model/mount.go
+++ b/kernel/model/mount.go
@@ -165,8 +165,10 @@ func Mount(boxID string) (alreadyMount bool, err error) {
}
avDirPath := filepath.Join(util.WorkingDir, "guide", boxID, "storage", "av")
- if err = filelock.Copy(avDirPath, filepath.Join(util.DataDir, "storage", "av")); nil != err {
- return
+ if filelock.IsExist(avDirPath) {
+ if err = filelock.Copy(avDirPath, filepath.Join(util.DataDir, "storage", "av")); nil != err {
+ return
+ }
}
if box := Conf.Box(boxID); nil != box {