Private
Public Access
1
0

新增:多文件预览Tab系统+脏标记+关闭确认+路径黑名单优化

- useMultiPreview composable管理多Tab状态、会话持久化
- 面包屑状态dot移除
- 放开Program Files目录访问限制
This commit is contained in:
2026-05-05 00:08:15 +08:00
parent ee4b1f5ac1
commit eb5b85e007
7 changed files with 558 additions and 48 deletions

View File

@@ -123,12 +123,9 @@ func (v *DefaultPathValidator) checkWindowsSystemPaths(path string) *ValidationE
if len(lowerPath) >= 3 && lowerPath[1] == ':' {
driveLetter := lowerPath[0:1]
// 检查系统关键目录(仅保留最关键的系统目录)
// 检查系统核心目录
forbiddenDirs := []string{
driveLetter + ":\\windows",
driveLetter + ":\\program files",
driveLetter + ":\\program files (x86)",
driveLetter + ":\\program files (arm)",
driveLetter + ":\\system volume information",
driveLetter + ":\\boot",
}