#388: display file size
This commit is contained in:
parent
03e0c45316
commit
0d685810a3
|
@ -2,6 +2,8 @@ json.contents (@contents.select(&:is_folder?) | @contents) do |content|
|
|||
json.(content, :name)
|
||||
json.is_folder content.is_folder?
|
||||
|
||||
json.size number_to_human_size(content.size) unless content.is_folder?
|
||||
|
||||
json.download_url content.download_url unless content.is_folder?
|
||||
json.subpath content.subpath
|
||||
|
||||
|
|
Loading…
Reference in New Issue