better directory handling

This commit is contained in:
Jesse Duffield 2020-08-02 13:28:26 +10:00
parent 45bff49ea6
commit 3a4a6d0870

View file

@ -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)
}
}