Method: COS::COSDir#tree
- Defined in:
- lib/cos/dir.rb
#tree(options = {}) ⇒ Hash
获取当前目录树形结构
:resource => resource,
:children => [
{:resource => resource, :children => [...],
=> resource, :children => [...],
...
]
}
203 204 205 |
# File 'lib/cos/dir.rb', line 203 def tree( = {}) bucket.tree(self, ) end |