class PublicFiles
Constants
- File
Public Instance Methods
call(bucket, extentions, tick = nil)
click to toggle source
# File lib/s3sec/services/public_files.rb, line 5 def call(bucket, extentions, tick = nil) bucket.keys.reduce([]) do |arr, key| tick.call if tick arr << File.new(key, bucket) if extentions.include?(key.split('.').last) && CheckAcl.call(bucket.client.get_object_acl({bucket: bucket.name, key: key})) arr end rescue => e puts e [] end