storage: pass limits object to backend
This commit is contained in:
@@ -103,8 +103,9 @@ function hasChownSupportSync(config) {
|
||||
}
|
||||
}
|
||||
|
||||
async function upload(config, remotePath) {
|
||||
async function upload(config, limits, remotePath) {
|
||||
assert.strictEqual(typeof config, 'object');
|
||||
assert.strictEqual(typeof limits, 'object');
|
||||
assert.strictEqual(typeof remotePath, 'string');
|
||||
|
||||
const fullRemotePath = path.join(getRootPath(config), remotePath);
|
||||
@@ -234,8 +235,9 @@ async function copy(config, fromPath, toPath, progressCallback) {
|
||||
return await copyInternal(config, fromPath, toPath, { recursive: false }, progressCallback);
|
||||
}
|
||||
|
||||
async function copyDir(config, fromPath, toPath, progressCallback) {
|
||||
async function copyDir(config, limits, fromPath, toPath, progressCallback) {
|
||||
assert.strictEqual(typeof config, 'object');
|
||||
assert.strictEqual(typeof limits, 'object');
|
||||
assert.strictEqual(typeof fromPath, 'string');
|
||||
assert.strictEqual(typeof toPath, 'string');
|
||||
assert.strictEqual(typeof progressCallback, 'function');
|
||||
@@ -258,8 +260,9 @@ async function remove(config, remotePath) {
|
||||
}
|
||||
}
|
||||
|
||||
async function removeDir(config, remotePathPrefix, progressCallback) {
|
||||
async function removeDir(config, limits, remotePathPrefix, progressCallback) {
|
||||
assert.strictEqual(typeof config, 'object');
|
||||
assert.strictEqual(typeof limits, 'object');
|
||||
assert.strictEqual(typeof remotePathPrefix, 'string');
|
||||
assert.strictEqual(typeof progressCallback, 'function');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user