+2
-2
@@ -210,7 +210,7 @@ async function copy(apiConfig, oldFilePath, newFilePath, progressCallback) {
|
||||
}
|
||||
|
||||
const batchSize = 1000;
|
||||
const concurrency = apiConfig.copyConcurrency || 10;
|
||||
const concurrency = apiConfig.limits?.copyConcurrency || 10;
|
||||
let total = 0;
|
||||
|
||||
const listDirAsync = util.promisify(listDir);
|
||||
@@ -239,7 +239,7 @@ async function removeDir(apiConfig, pathPrefix, progressCallback) {
|
||||
assert.strictEqual(typeof pathPrefix, 'string');
|
||||
assert.strictEqual(typeof progressCallback, 'function');
|
||||
|
||||
const batchSize = 1000, concurrency = apiConfig.deleteConcurrency || 10; // https://googleapis.dev/nodejs/storage/latest/Bucket.html#deleteFiles
|
||||
const batchSize = 1000, concurrency = apiConfig.limits?.deleteConcurrency || 10; // https://googleapis.dev/nodejs/storage/latest/Bucket.html#deleteFiles
|
||||
let total = 0;
|
||||
|
||||
const listDirAsync = util.promisify(listDir);
|
||||
|
||||
Reference in New Issue
Block a user