🐛 无法插入资源文件的问题 Fix https://github.com/siyuan-note/siyuan/issues/5971

This commit is contained in:
Liang Ding 2022-09-26 20:20:50 +08:00
parent f7d91a67b9
commit e536f5d4b6
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 12 additions and 1 deletions

View file

@ -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