mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 00:44:07 +01:00
This commit is contained in:
parent
4170f50dc6
commit
102d9364fd
25 changed files with 118 additions and 398 deletions
|
|
@ -27,7 +27,7 @@ import (
|
|||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute/ast"
|
||||
"github.com/siyuan-note/siyuan/kernel/filesys"
|
||||
"github.com/siyuan-note/filelock"
|
||||
"github.com/siyuan-note/siyuan/kernel/treenode"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
|
@ -87,7 +87,7 @@ func RemoveBox(boxID string) (err error) {
|
|||
return errors.New(fmt.Sprintf("can not remove [%s] caused by it is not a dir", boxID))
|
||||
}
|
||||
|
||||
filesys.ReleaseFileLocks(localPath)
|
||||
filelock.ReleaseFileLocks(localPath)
|
||||
if !isUserGuide(boxID) {
|
||||
var historyDir string
|
||||
historyDir, err = util.GetHistoryDir("delete")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue