fix(disk): uses config.IsTemplate instead

fixes #6499

Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
Dwi Siswanto 2025-09-27 15:21:21 +07:00
parent 7d450507f7
commit ca11a2fad6
No known key found for this signature in database
GPG Key ID: 3BB198907EF44CED

View File

@ -257,7 +257,7 @@ func (c *DiskCatalog) findDirectoryMatches(absPath string, processed map[string]
if err != nil { if err != nil {
return nil return nil
} }
if !d.IsDir() && config.GetTemplateFormatFromExt(path) != config.Unknown { if !d.IsDir() && config.IsTemplate(path) {
if _, ok := processed[path]; !ok { if _, ok := processed[path]; !ok {
results = append(results, path) results = append(results, path)
processed[path] = struct{}{} processed[path] = struct{}{}
@ -281,7 +281,7 @@ func (c *DiskCatalog) findDirectoryMatches(absPath string, processed map[string]
if err != nil { if err != nil {
return nil return nil
} }
if !d.IsDir() && config.GetTemplateFormatFromExt(path) != config.Unknown { if !d.IsDir() && config.IsTemplate(path) {
if _, ok := processed[path]; !ok { if _, ok := processed[path]; !ok {
results = append(results, path) results = append(results, path)
processed[path] = struct{}{} processed[path] = struct{}{}