This commit is contained in:
Daniel 2023-08-15 20:16:04 +08:00
parent cc7d431d26
commit 29678939f3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -282,6 +282,8 @@ func buildAssetContentOrderBy(orderBy int) string {
var assetContentSearcher = NewAssetsSearcher()
func IndexAssetContent(absPath string) {
defer logging.Recover()
assetsDir := util.GetDataAssetsAbsPath()
ext := strings.ToLower(filepath.Ext(absPath))
@ -353,6 +355,8 @@ type AssetsSearcher struct {
}
func (searcher *AssetsSearcher) FullIndex() {
defer logging.Recover()
assetsDir := util.GetDataAssetsAbsPath()
if !gulu.File.IsDir(assetsDir) {
return