Skip to content

Commit

Permalink
Fixed to work with latest aws-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsasaarela committed Aug 5, 2014
1 parent 29145d1 commit 9d0a362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ S3Sizer.prototype._getFolderSize = function(bucket, folder, marker, callback) {
params.Marker = marker;
}

this.s3.client.listObjects(params, function(err, data) {
(this.s3.client || this.s3).listObjects(params, function(err, data) {
if(err) {
return callback(err, null);
}
Expand Down Expand Up @@ -92,4 +92,4 @@ S3Sizer.prototype._calculateObjectsSize = function(objects) {
return size;
};

module.exports = S3Sizer;
module.exports = S3Sizer;

0 comments on commit 9d0a362

Please sign in to comment.