Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Add kernel API `/api/file/renameFile` https://github.com/siyuan-note/siyuan/issues/8328

Daniel5a644cff7387
diff --git a/kernel/api/file.go b/kernel/api/file.go
index 114db355c5..e608d94ba9 100644
--- a/kernel/api/file.go
+++ b/kernel/api/file.go
@@ -196,6 +196,7 @@ func renameFile(c *gin.Context) {
}
if err = filelock.Rename(filePath, newPath); nil != err {
+ logging.LogErrorf("rename file [%s] to [%s] failed: %s", filePath, newPath, err)
c.Status(500)
return
}
@@ -225,6 +226,7 @@ func removeFile(c *gin.Context) {
}
if err = filelock.Remove(filePath); nil != err {
+ logging.LogErrorf("remove [%s] failed: %s", filePath, err)
c.Status(500)
return
}