MCPcopy Create free account
hub / github.com/brimdata/super / Delete

Method Delete

pkg/storage/file.go:63–65  ·  view source on GitHub ↗
(_ context.Context, u *URI)

Source from the content-addressed store, hash-verified

61}
62
63func (f *FileSystem) Delete(_ context.Context, u *URI) error {
64 return fileErr(os.Remove(u.Filepath()))
65}
66
67func (f *FileSystem) DeleteByPrefix(_ context.Context, u *URI) error {
68 return os.RemoveAll(u.Filepath())

Callers 1

PutIfNotExistsMethod · 0.95

Calls 3

fileErrFunction · 0.85
RemoveMethod · 0.45
FilepathMethod · 0.45

Tested by

no test coverage detected