Method: AssetCloud::FileSystemBucket#ls
- Defined in:
- lib/asset_cloud/buckets/file_system_bucket.rb
#ls(key = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/asset_cloud/buckets/file_system_bucket.rb', line 5 def ls(key = nil) objects = [] base_path = File.join(path_for(key), "*") Dir.glob(base_path).each do |f| next unless File.file?(f) objects.push(cloud[relative_path_for(f)]) end objects end |