parent
a03b9c805e
commit
0a68f1df72
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue