diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-17 01:01:07 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-17 01:01:07 +0200 |
| commit | 1ce8393bcacbe774715e73d144e24835954c6216 (patch) | |
| tree | f1f4d6c359d20d95cc9041c4bdd15b6fd320d109 /model | |
| parent | d813995af4ad44c47f5c3f1f4d38183776fb975f (diff) | |
fix some sources not having a name
Diffstat (limited to 'model')
| -rw-r--r-- | model/new.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/new.go b/model/new.go index 6f5c71b..cddb404 100644 --- a/model/new.go +++ b/model/new.go @@ -16,7 +16,7 @@ func NewState(f fs.FS, locations []string, indexers []Indexer, runners []Runner) var sources = make([]*Source, len(locations), len(locations)) for i, loc := range locations { wg.Go(func() { - _, dirName := filepath.Split(loc) + _, dirName := filepath.Split(strings.TrimSuffix(loc, "/")) src := &Source{ Path: loc, Identity: identity.New(dirName), |
