forked from TrueCloudLab/rclone
lsjson, lsf: support showing the Tier of the object
This commit is contained in:
parent
eeab7a0a43
commit
a57756a05c
3 changed files with 17 additions and 0 deletions
|
@ -1596,6 +1596,13 @@ func (l *ListFormat) AddOrigID() {
|
|||
})
|
||||
}
|
||||
|
||||
// AddTier adds file's Tier to the output if known
|
||||
func (l *ListFormat) AddTier() {
|
||||
l.AppendOutput(func(entry *ListJSONItem) string {
|
||||
return entry.Tier
|
||||
})
|
||||
}
|
||||
|
||||
// AddMimeType adds file's MimeType to the output if known
|
||||
func (l *ListFormat) AddMimeType() {
|
||||
l.AppendOutput(func(entry *ListJSONItem) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue