fixed bug where saves directory is listed with save files

This commit is contained in:
majormjr 2016-10-11 12:20:54 -04:00
parent 17a9c7c8af
commit b7eaccce60

View File

@ -23,6 +23,9 @@ func (s Save) String() string {
// Lists save files in factorio/saves
func listSaves(saveDir string) (saves []Save, err error) {
err = filepath.Walk(saveDir, func(path string, info os.FileInfo, err error) error {
if info.IsDir() && info.Name() == "saves" {
return nil
}
saves = append(saves, Save{
info.Name(),
info.ModTime(),