MCPcopy
hub / github.com/rclone/rclone / AddSize

Method AddSize

fs/operations/operations.go:2261–2265  ·  view source on GitHub ↗

AddSize adds file's size to output

()

Source from the content-addressed store, hash-verified

2259
2260// AddSize adds file's size to output
2261func (l *ListFormat) AddSize() {
2262 l.AppendOutput(func(entry *ListJSONItem) string {
2263 return strconv.FormatInt(entry.Size, 10)
2264 })
2265}
2266
2267// normalisePath makes sure the path has the correct slashes for the current mode
2268func (l *ListFormat) normalisePath(entry *ListJSONItem, remote string) string {

Callers 4

LsfFunction · 0.95
DstLsfFunction · 0.95
TestListFormatFunction · 0.95
SetListFormatMethod · 0.95

Calls 1

AppendOutputMethod · 0.95

Tested by 2

DstLsfFunction · 0.76
TestListFormatFunction · 0.76