Skip to content

Instantly share code, notes, and snippets.

@lusis
Forked from dje/truncated_directory.rb
Created January 18, 2011 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/784874 to your computer and use it in GitHub Desktop.
Save lusis/784874 to your computer and use it in GitHub Desktop.
files = directory.files.all
truncated = files.is_truncated
while truncated
set = directory.files.all( :marker => files.last.key )
truncated = set.is_truncated
files = files + set
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment