Created
February 26, 2015 06:42
-
-
Save odeke-em/7a226a8121e44936d1b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var bucket = new AWS.S3({params: {Bucket: 'foo'}}); | |
var callback = function(err, data) { if (err) console.log(err); else console.log(data);} | |
// Objects since 2015-02-23 | |
bucket.listObjects({Prefix: '2015-02', Marker: '2015-02-23-00:00:00'}, callback); | |
// Objects after 4:00 p.m on 2015-02-23 | |
bucket.listObjects({Prefix: '2015-02-23', Marker: '2015-02-23-16:00:00'}, callback); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment