🎨 初次启动选择工作空间后不再创建 SiYuan
这一层文件夹 Fix https://github.com/siyuan-note/siyuan/issues/7044
This commit is contained in:
parent
7f82ea8fd7
commit
ce282abce6
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@
|
|||
if (!result.canceled) {
|
||||
const {ipcRenderer} = require('electron')
|
||||
const fs = require('fs')
|
||||
const initPath = path.join(result.filePaths[0], 'SiYuan')
|
||||
const initPath = result.filePaths[0]
|
||||
if (!fs.existsSync(initPath)) {
|
||||
fs.mkdirSync(initPath, {mode: 0o755, recursive: true})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue