获取文件及目录总数
Parameters:
目录路径, 如: ‘path1’, ‘path1/path2’, sdk会补齐末尾的 ‘/’
Returns:
文件及目录总数
Raises:
服务端异常返回
113 114 115 116
# File 'lib/cos/bucket.rb', line 113 def count(path = '') lc = list_count(path) lc[:total] end