mirror of
https://github.com/rclone/rclone.git
synced 2025-06-04 03:04:36 +08:00
lsjson, lsf: support showing the Tier of the object
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user