mirror of
https://github.com/jesseduffield/horcrux
synced 2024-06-01 07:12:15 +02:00
better directory handling
This commit is contained in:
parent
45bff49ea6
commit
3a4a6d0870
|
@ -23,7 +23,8 @@ func GetHorcruxPathsInDir(dir string) ([]string, error) {
|
|||
paths := []string{}
|
||||
for _, file := range files {
|
||||
if filepath.Ext(file.Name()) == ".horcrux" {
|
||||
paths = append(paths, file.Name())
|
||||
path := filepath.Join(dir, file.Name())
|
||||
paths = append(paths, path)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue