mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🐛 无法插入资源文件的问题 Fix https://github.com/siyuan-note/siyuan/issues/5971
This commit is contained in:
parent
f7d91a67b9
commit
e536f5d4b6
2 changed files with 12 additions and 1 deletions
3
kernel/cache/asset.go
vendored
3
kernel/cache/asset.go
vendored
|
|
@ -45,6 +45,9 @@ func LoadAssets() {
|
|||
|
||||
assets := filepath.Join(util.DataDir, "assets")
|
||||
filepath.Walk(assets, func(path string, info fs.FileInfo, err error) error {
|
||||
if nil == info {
|
||||
return err
|
||||
}
|
||||
if info.IsDir() {
|
||||
if strings.HasPrefix(info.Name(), ".") {
|
||||
return filepath.SkipDir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue