Classes: Directory, File
"0.0.2"
6 7 8 9 10 11
# File 'lib/s3_tree.rb', line 6 def self.tree(bucket_name,path='') path = path + '/' if path.present? s3 = Aws::S3::Resource.new bucket = s3.bucket(bucket_name) S3Tree::Directory.new(bucket,path).children end