MCPcopy
hub / github.com/rclone/rclone / AppendOutput

Method AppendOutput

fs/operations/operations.go:2347–2349  ·  view source on GitHub ↗

AppendOutput adds string generated by specific function to printed output

(functionToAppend func(item *ListJSONItem) string)

Source from the content-addressed store, hash-verified

2345
2346// AppendOutput adds string generated by specific function to printed output
2347func (l *ListFormat) AppendOutput(functionToAppend func(item *ListJSONItem) string) {
2348 l.output = append(l.output, functionToAppend)
2349}
2350
2351// Format prints information about the DirEntry in the format defined
2352func (l *ListFormat) Format(entry *ListJSONItem) (result string) {

Callers 11

TestListFormatFunction · 0.95
AddModTimeMethod · 0.95
AddSizeMethod · 0.95
AddPathMethod · 0.95
AddEncryptedMethod · 0.95
AddHashMethod · 0.95
AddIDMethod · 0.95
AddOrigIDMethod · 0.95
AddTierMethod · 0.95
AddMimeTypeMethod · 0.95
AddMetadataMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestListFormatFunction · 0.76