mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve create workspace interaction https://github.com/siyuan-note/siyuan/issues/8700
This commit is contained in:
@@ -64,8 +64,16 @@ func checkWorkspaceDir(c *gin.Context) {
|
||||
|
||||
var existsConf, existsData bool
|
||||
for _, entry := range entries {
|
||||
existsConf = "conf" == entry.Name() && entry.IsDir()
|
||||
existsData = "data" == entry.Name() && entry.IsDir()
|
||||
if !existsConf {
|
||||
existsConf = "conf" == entry.Name() && entry.IsDir()
|
||||
}
|
||||
if !existsData {
|
||||
existsData = "data" == entry.Name() && entry.IsDir()
|
||||
}
|
||||
|
||||
if existsConf && existsData {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if existsConf {
|
||||
|
||||
Reference in New Issue
Block a user