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

Method Get

pkg/storage/file.go:31–34  ·  view source on GitHub ↗
(ctx context.Context, u *URI)

Source from the content-addressed store, hash-verified

29}
30
31func (f *FileSystem) Get(ctx context.Context, u *URI) (Reader, error) {
32 r, err := pkgfs.Open(u.Filepath())
33 return &fileSizer{r}, fileErr(err)
34}
35
36func (f *FileSystem) Put(_ context.Context, u *URI) (io.WriteCloser, error) {
37 path := u.Filepath()

Callers

nothing calls this directly

Calls 3

fileErrFunction · 0.85
OpenMethod · 0.45
FilepathMethod · 0.45

Tested by

no test coverage detected