mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
da6720e8f9
commit
6feb2bc8ec
2 changed files with 11 additions and 0 deletions
|
|
@ -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")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue