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

Method Size

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

Source from the content-addressed store, hash-verified

69}
70
71func (f *FileSystem) Size(_ context.Context, u *URI) (int64, error) {
72 info, err := os.Stat(u.Filepath())
73 if err != nil {
74 return 0, fileErr(err)
75 }
76 return info.Size(), nil
77}
78
79func (f *FileSystem) Exists(_ context.Context, u *URI) (bool, error) {
80 _, err := os.Stat(u.Filepath())

Callers

nothing calls this directly

Calls 3

fileErrFunction · 0.85
SizeMethod · 0.65
FilepathMethod · 0.45

Tested by

no test coverage detected