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
|
@ -70,6 +70,7 @@ output:
|
|||
o - Original ID of underlying object
|
||||
m - MimeType of object if known
|
||||
e - encrypted name
|
||||
T - tier of storage if known, eg "Hot" or "Cool"
|
||||
|
||||
So if you wanted the path, size and modification time, you would use
|
||||
--format "pst", or maybe --format "tsp" to put the path last.
|
||||
|
@ -191,6 +192,8 @@ func Lsf(fsrc fs.Fs, out io.Writer) error {
|
|||
case 'o':
|
||||
list.AddOrigID()
|
||||
opt.ShowOrigIDs = true
|
||||
case 'T':
|
||||
list.AddTier()
|
||||
default:
|
||||
return errors.Errorf("Unknown format character %q", char)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue