summaryrefslogtreecommitdiff
path: root/model/new.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/new.go')
-rw-r--r--model/new.go2
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),