From 0fb04830db182dd938ef1ab2e7d4714d7a639b41 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 5 Jan 2023 19:37:27 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4=20Fix=20?= =?UTF-8?q?https://github.com/siyuan-note/siyuan/issues/4642?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/workspace.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go index 6a416b043..6d281866d 100644 --- a/kernel/api/workspace.go +++ b/kernel/api/workspace.go @@ -227,6 +227,9 @@ func isInvalidWorkspacePath(absPath string) bool { if "" == name { return true } + if strings.HasPrefix(name, ".") { + return true + } if !gulu.File.IsValidFilename(name) { return true }