KeyCount is not set on some S3 providers

This commit is contained in:
Girish Ramakrishnan
2017-10-05 11:36:54 -07:00
parent ee1a4411f8
commit ee8ee8e786

View File

@@ -195,7 +195,7 @@ function listDir(apiConfig, backupFilePath, options, iteratorCallback, callback)
async.eachLimit(arr, 10, iteratorCallback.bind(null, s3), function iteratorDone(error) {
if (error) return foreverCallback(error);
total += listData.KeyCount;
total += listData.Contents.length;
if (!listData.IsTruncated) return foreverCallback(new Error('Done'));