MCPcopy
hub / github.com/wavetermdev/waveterm / DeleteZone

Method DeleteZone

pkg/filestore/blockstore.go:165–174  ·  view source on GitHub ↗
(ctx context.Context, zoneId string)

Source from the content-addressed store, hash-verified

163}
164
165func (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
177func (s *FileStore) Stat(ctx context.Context, zoneId string, name string) (*WaveFile, error) {

Callers 5

DBDeleteFunction · 0.80
DeleteJobFunction · 0.80
CreateBlockWithTelemetryFunction · 0.80
TestDeleteFunction · 0.80
clearTempFilesFunction · 0.80

Calls 2

DeleteFileMethod · 0.95
dbGetZoneFileNamesFunction · 0.85

Tested by 1

TestDeleteFunction · 0.64