Skip to content

Instantly share code, notes, and snippets.

@steini
Created July 13, 2011 13:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steini/1080282 to your computer and use it in GitHub Desktop.
Save steini/1080282 to your computer and use it in GitHub Desktop.
get files in a subfolder using fog
storage = Fog::Storage.new(
:provider => 'AWS',
:aws_access_key_id => 'acces_key_id',
:aws_secret_access_key => 'secret_access_key'
)
puts storage.directories.get('bucket', :prefix => 'folder').files.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment