diff --git a/lib/storage-service.js b/lib/storage-service.js index 6ef4b5e..3f4b755 100644 --- a/lib/storage-service.js +++ b/lib/storage-service.js @@ -154,8 +154,13 @@ StorageService.prototype.downloadStream = function (container, file, options, cb * @param {Object|String} err Error string or object * @param {Object[]} files An array of file metadata objects */ -StorageService.prototype.getFiles = function (container, cb) { - return this.client.getFiles(container, false, function (err, files) { +StorageService.prototype.getFiles = function (container, options, cb) { + if(typeof options === 'function' && !cb) { + // options argument is not present + cb = options; + options = {}; + } + return this.client.getFiles(container, options, function (err, files) { if (err) { cb(err, files); } else {