mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 Upgrade kernel dpes
This commit is contained in:
parent
9797e5e032
commit
ca37685d08
6 changed files with 9 additions and 13 deletions
|
|
@ -1208,7 +1208,7 @@ func moveDoc(fromBox *Box, fromPath string, toBox *Box, toPath string, luteEngin
|
|||
if gulu.File.IsExist(absToPath) {
|
||||
filelock.Remove(absToPath)
|
||||
}
|
||||
if err = filelock.Move(absFromPath, absToPath); nil != err {
|
||||
if err = filelock.Rename(absFromPath, absToPath); nil != err {
|
||||
msg := fmt.Sprintf(Conf.Language(5), fromBox.Name, fromPath, err)
|
||||
logging.LogErrorf("move [path=%s] in box [%s] failed: %s", fromPath, fromBox.ID, err)
|
||||
err = errors.New(msg)
|
||||
|
|
@ -1233,7 +1233,7 @@ func moveDoc(fromBox *Box, fromPath string, toBox *Box, toPath string, luteEngin
|
|||
} else {
|
||||
absFromPath := filepath.Join(util.DataDir, fromBox.ID, fromPath)
|
||||
absToPath := filepath.Join(util.DataDir, toBox.ID, newPath)
|
||||
if err = filelock.Move(absFromPath, absToPath); nil != err {
|
||||
if err = filelock.Rename(absFromPath, absToPath); nil != err {
|
||||
msg := fmt.Sprintf(Conf.Language(5), fromBox.Name, fromPath, err)
|
||||
logging.LogErrorf("move [path=%s] in box [%s] failed: %s", fromPath, fromBox.ID, err)
|
||||
err = errors.New(msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue