MCPcopy Create free account
hub / github.com/devld/go-drive / Size

Method Size

script/object_io.go:190–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188}
189
190func (tf TempFile) Size() int64 {
191 info, e := tf.f.Stat()
192 if e != nil {
193 tf.vm.ThrowError(e)
194 }
195 return info.Size()
196}
197
198func (tf TempFile) close() error {
199 _ = tf.f.Close()

Callers

nothing calls this directly

Calls 3

ThrowErrorMethod · 0.80
StatMethod · 0.65
SizeMethod · 0.65

Tested by

no test coverage detected