mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 移动端支持多工作空间 https://github.com/siyuan-note/siyuan/issues/4642
This commit is contained in:
parent
6b4a6bd7d3
commit
ac03db15df
3 changed files with 65 additions and 14 deletions
|
|
@ -199,6 +199,10 @@ func initWorkspaceDir(workspaceArg string) {
|
|||
defaultWorkspaceDir = filepath.Join(userProfile, "Documents", "SiYuan")
|
||||
}
|
||||
}
|
||||
if err := os.MkdirAll(defaultWorkspaceDir, 0755); nil != err && !os.IsExist(err) {
|
||||
log.Printf("create default workspace folder [%s] failed: %s", defaultWorkspaceDir, err)
|
||||
os.Exit(ExitCodeCreateWorkspaceDirErr)
|
||||
}
|
||||
|
||||
var workspacePaths []string
|
||||
if !gulu.File.IsExist(workspaceConf) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue