Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Couldnot get Time stamp for s3 files #16

Open
varunkubba opened this issue Jan 19, 2015 · 0 comments
Open

Couldnot get Time stamp for s3 files #16

varunkubba opened this issue Jan 19, 2015 · 0 comments

Comments

@varunkubba
Copy link

I am using uber-s3 to fetch all the URLs that I have cahced in s3 Bucket. I also want the timestamps of the files at which they were cached, but I am not able to find any way to do this. Here is my code

require 'uber-s3'

s3=UberS3.new({
:access_key => Access_Key,
:secret_access_key => Secret_Access_key,
:bucket => Bucket_Name,
})
s3.objects('/').each do |obj|
puts obj.key
puts obj.last_modified
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant