mirror of
https://github.com/stashapp/stash.git
synced 2025-12-15 21:03:22 +01:00
Use symwalk for scrapers (#938)
This commit is contained in:
parent
0a098b1d63
commit
e62e74bff4
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import (
|
|||
|
||||
"github.com/stashapp/stash/pkg/logger"
|
||||
"github.com/stashapp/stash/pkg/models"
|
||||
"github.com/stashapp/stash/pkg/utils"
|
||||
)
|
||||
|
||||
// GlobalConfig contains the global scraper options.
|
||||
|
|
@ -58,7 +59,7 @@ func loadScrapers(path string) ([]config, error) {
|
|||
|
||||
logger.Debugf("Reading scraper configs from %s", path)
|
||||
scraperFiles := []string{}
|
||||
err := filepath.Walk(path, func(fp string, f os.FileInfo, err error) error {
|
||||
err := utils.SymWalk(path, func(fp string, f os.FileInfo, err error) error {
|
||||
if filepath.Ext(fp) == ".yml" {
|
||||
scraperFiles = append(scraperFiles, fp)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue