From 9d2a9c0da2409195719085c4dc0025a6e96d7f4a Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 8 Feb 2024 17:14:51 +0800 Subject: [PATCH] :memo: Add user guide chapter Database https://github.com/siyuan-note/siyuan/issues/10340 --- kernel/model/mount.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/model/mount.go b/kernel/model/mount.go index c7b8f942e..988f530e6 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 {