(ctx context.Context, zoneId string)
| 163 | } |
| 164 | |
| 165 | func (s *FileStore) DeleteZone(ctx context.Context, zoneId string) error { |
| 166 | fileNames, err := dbGetZoneFileNames(ctx, zoneId) |
| 167 | if err != nil { |
| 168 | return fmt.Errorf("error getting zone files: %v", err) |
| 169 | } |
| 170 | for _, name := range fileNames { |
| 171 | s.DeleteFile(ctx, zoneId, name) |
| 172 | } |
| 173 | return nil |
| 174 | } |
| 175 | |
| 176 | // if file doesn't exsit, returns fs.ErrNotExist |
| 177 | func (s *FileStore) Stat(ctx context.Context, zoneId string, name string) (*WaveFile, error) { |