mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 01:04:21 +01:00
🎨 Ignore hidden files loading into asset cache
This commit is contained in:
parent
a5ddeaddcd
commit
428c34c931
1 changed files with 1 additions and 1 deletions
2
kernel/cache/asset.go
vendored
2
kernel/cache/asset.go
vendored
|
|
@ -82,7 +82,7 @@ func LoadAssets() {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
if strings.HasSuffix(info.Name(), ".sya") || strings.HasPrefix(info.Name(), ".") {
|
||||
if strings.HasSuffix(info.Name(), ".sya") || strings.HasPrefix(info.Name(), ".") || filelock.IsHidden(path) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue