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[]} 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 {
|
||||
|
|
Loading…
Reference in New Issue