Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit 265f19d

Browse files
committed
将复制的 db 文件放到思源的 temp 目录中
1 parent 19746dc commit 265f19d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// "-TemplateDir=../src/views/",
4040
// "-SqlitePath=../test-doc/temp/siyuan.db",
4141
// ]
42-
// 远程开发机测试测试
42+
// 远程开发机测试
4343
"args": [
4444
"-SourceDir=/root/doc/SiYuan/data/20210816161940-zo21go1",
4545
"-OutDir=/root/doc/NoteOutHTML",

src/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424

2525
func main() {
2626
util.RunningLog("0", "=== 🛬 开始转换 🛫 ===")
27-
// 流程 1 用户输入 {源目录 输出目录}
2827
util.RunningLog("1", "用户输入")
2928
sourceDir := conf.SourceDir
3029
outDir := conf.OutDir
@@ -33,7 +32,7 @@ func main() {
3332
util.RunningLog("1.2", "outDir:"+outDir)
3433
util.RunningLog("1.3", "viewsDir:"+conf.TemplateDir)
3534
util.RunningLog("1.4", "SqlitePath:"+conf.SqlitePath)
36-
tempDbPath := path.Join(filepath.ToSlash(sourceDir), "../oceanPressTemp.db")
35+
tempDbPath := path.Join(filepath.ToSlash(sourceDir), "../../temp/oceanPress/oceanPressTemp.db")
3736
err := copy.Copy(conf.SqlitePath, tempDbPath)
3837
if err != nil {
3938
util.DevLog("copy 数据库失败", err)

0 commit comments

Comments
 (0)