()
| 884 | return store.BackupInfo{}, err |
| 885 | } |
| 886 | return store.BackupInfo{Name: name, Path: path, Size: int64(len(content)), CreatedAt: now.Unix()}, nil |
| 887 | } |
| 888 | |
| 889 | func listConfigBackups(dir string) ([]store.BackupInfo, error) { |
| 890 | entries, err := os.ReadDir(dir) |
| 891 | if err != nil { |
| 892 | if os.IsNotExist(err) { |
no test coverage detected