mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-04 03:49:23 +02:00
fixed bug where saves directory is listed with save files
This commit is contained in:
parent
17a9c7c8af
commit
b7eaccce60
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user