mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
fix: do not return dir
This commit is contained in:
parent
f2db3c728d
commit
98581d1db2
@ -3,7 +3,6 @@ package files
|
||||
import (
|
||||
"context"
|
||||
"io/fs"
|
||||
"path"
|
||||
|
||||
"github.com/charlievieth/fastwalk"
|
||||
)
|
||||
@ -19,7 +18,7 @@ func Find(ctx context.Context, filename string) ([]string, error) {
|
||||
return err
|
||||
}
|
||||
if d.Name() == filename {
|
||||
ret = append(ret, path.Dir(p))
|
||||
ret = append(ret, p)
|
||||
}
|
||||
return nil
|
||||
}); err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user