Do we really need a function for this? Especially as you already call filepath.Dir before calling it?
Please
1) Demote the function within the scope of the caller
2) Directly use ioutil.ReadFile