Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-06 16:41:03 +08:00
parent da6720e8f9
commit 6feb2bc8ec
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 11 additions and 0 deletions

View file

@ -391,6 +391,12 @@ func IsSensitivePath(p string) bool {
}
}
// 工作空间/conf 目录(小写比较)
workspaceConfPrefix := strings.ToLower(filepath.Join(WorkspaceDir, "conf"))
if strings.HasPrefix(pp, workspaceConfPrefix) {
return true
}
homePrefixes := []string{
strings.ToLower(filepath.Join(HomeDir, ".ssh")),
strings.ToLower(filepath.Join(HomeDir, ".config")),