MCPcopy Create free account
hub / github.com/dropbox/dbxcli / formatFileMetadataWithOpts

Function formatFileMetadataWithOpts

cmd/ls.go:79–86  ·  view source on GitHub ↗
(e *files.FileMetadata, opts listOptions)

Source from the content-addressed store, hash-verified

77}
78
79func formatFileMetadataWithOpts(e *files.FileMetadata, opts listOptions) string {
80 text := fmt.Sprintf("%s\t", e.PathDisplay)
81 if opts.long {
82 t := getTime(e, opts)
83 text = fmt.Sprintf("%s\t%s\t%s\t", e.Rev, humanize.IBytes(e.Size), formatTime(t, opts)) + text
84 }
85 return text
86}
87
88func formatDeletedMetadata(e *files.DeletedMetadata, longFormat bool) string {
89 text := fmt.Sprintf("%s\t", e.PathDisplay)

Calls 2

getTimeFunction · 0.85
formatTimeFunction · 0.85