mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
📝 Add user guide chapter Database https://github.com/siyuan-note/siyuan/issues/10340
This commit is contained in:
parent
4b19979c60
commit
9d2a9c0da2
1 changed files with 4 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue