🎨 Improve create workspace interaction https://github.com/siyuan-note/siyuan/issues/8700

This commit is contained in:
Daniel 2023-07-07 23:40:15 +08:00
parent b795f403b6
commit a9ad143521
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -64,8 +64,16 @@ func checkWorkspaceDir(c *gin.Context) {
var existsConf, existsData bool var existsConf, existsData bool
for _, entry := range entries { for _, entry := range entries {
existsConf = "conf" == entry.Name() && entry.IsDir() if !existsConf {
existsData = "data" == entry.Name() && entry.IsDir() existsConf = "conf" == entry.Name() && entry.IsDir()
}
if !existsData {
existsData = "data" == entry.Name() && entry.IsDir()
}
if existsConf && existsData {
break
}
} }
if existsConf { if existsConf {