MCPcopy
hub / github.com/rclone/rclone / Size

Method Size

vfs/read_write.go:239–243  ·  view source on GitHub ↗

Size returns the size of the underlying file

()

Source from the content-addressed store, hash-verified

237
238// Size returns the size of the underlying file
239func (fh *RWFileHandle) Size() int64 {
240 fh.mu.Lock()
241 defer fh.mu.Unlock()
242 return fh._size()
243}
244
245// Stat returns info about the file
246func (fh *RWFileHandle) Stat() (os.FileInfo, error) {

Callers

nothing calls this directly

Calls 3

_sizeMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected