Fixed path used in LoadFiles

This commit is contained in:
David Allen 2024-06-27 10:03:35 -06:00
parent a19bf50471
commit 2154657d34
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -177,6 +177,7 @@ func LoadFiles(paths ...string) (Files, error) {
fmt.Println(err)
return nil, fmt.Errorf("failed to stat file or directory: %v", err)
}
// skip any directories found
if info.IsDir() {
continue
}
@ -185,7 +186,7 @@ func LoadFiles(paths ...string) (Files, error) {
return nil, fmt.Errorf("failed to read file: %v", err)
}
outputs[path] = b
outputs[expandedPath] = b
}
}