This commit is contained in:
Liang Ding 2023-01-04 20:13:17 +08:00
parent fb7361d98b
commit a9cb87787e
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 95 additions and 29 deletions

View file

@ -217,7 +217,7 @@ func initWorkspaceDir(workspaceArg string) {
log.Printf("unmarshal workspace conf [%s] failed: %s", workspaceConf, err)
}
tmp := workspacePaths[:0]
var tmp []string
for _, d := range workspacePaths {
d = strings.TrimRight(d, " \t\n") // 去掉工作空间路径尾部空格 https://github.com/siyuan-note/siyuan/issues/6353
if gulu.File.IsDir(d) {