Daniel
2026-03-06 16:41:03 +08:00
parent da6720e8f9
commit 6feb2bc8ec
2 changed files with 11 additions and 0 deletions
+6
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")),