Update storage-service.js

Took Raymond's suggestion...
This commit is contained in:
Tony Sukiennik 2014-10-25 22:39:45 -07:00
parent a03b9c805e
commit 0a68f1df72
1 changed files with 7 additions and 2 deletions

View File

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