From 428c34c93108d6e4edc85a21738e0da8f7c6090e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 11 Jun 2024 16:54:39 +0800 Subject: [PATCH] :art: Ignore hidden files loading into asset cache --- kernel/cache/asset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cache/asset.go b/kernel/cache/asset.go index 524cf35ef..f33b61864 100644 --- a/kernel/cache/asset.go +++ b/kernel/cache/asset.go @@ -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 }