Created
July 3, 2014 13:34
-
-
Save y13i/8c1cd3f1e7730424bb55 to your computer and use it in GitHub Desktop.
S3バケット内の全オブジェクト一覧をファイルに出力する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File.open "./list_of_objects_in_some_bucket.txt", "w" do |file| | |
s3.buckets["some_bucket"].objects.each do |object| | |
file.puts object.key | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment