mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
b2bcec6ea0
commit
effb602c62
9 changed files with 31 additions and 322 deletions
|
|
@ -85,7 +85,7 @@ func ListNotebooks() (ret []*Box, err error) {
|
|||
boxConf := conf.NewBoxConf()
|
||||
boxConfPath := filepath.Join(util.DataDir, dir.Name(), ".siyuan", "conf.json")
|
||||
if !gulu.File.IsExist(boxConfPath) {
|
||||
if isUserGuide(dir.Name()) {
|
||||
if IsUserGuide(dir.Name()) {
|
||||
filelock.ReleaseAllFileLocks()
|
||||
os.RemoveAll(filepath.Join(util.DataDir, dir.Name()))
|
||||
logging.LogWarnf("not found user guid box conf [%s], removed it", boxConfPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue