mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Improve create workspace interaction https://github.com/siyuan-note/siyuan/issues/8700
This commit is contained in:
parent
b795f403b6
commit
a9ad143521
1 changed files with 10 additions and 2 deletions
|
|
@ -64,10 +64,18 @@ func checkWorkspaceDir(c *gin.Context) {
|
|||
|
||||
var existsConf, existsData bool
|
||||
for _, entry := range entries {
|
||||
if !existsConf {
|
||||
existsConf = "conf" == entry.Name() && entry.IsDir()
|
||||
}
|
||||
if !existsData {
|
||||
existsData = "data" == entry.Name() && entry.IsDir()
|
||||
}
|
||||
|
||||
if existsConf && existsData {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if existsConf {
|
||||
existsConf = gulu.File.IsExist(filepath.Join(path, "conf", "conf.json"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue