Add remount route for mountlike backup storages

This commit is contained in:
Johannes Zellner
2021-10-11 17:45:35 +02:00
parent 9eed3af8b6
commit d1a7172895
10 changed files with 91 additions and 12 deletions

View File

@@ -14,6 +14,8 @@ exports = module.exports = {
remove,
removeDir,
remount,
testConfig,
removePrivateFields,
injectPrivateFields,
@@ -474,6 +476,13 @@ function removeDir(apiConfig, pathPrefix) {
return events;
}
function remount(apiConfig, callback) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof callback, 'function');
return callback(new BoxError(BoxError.NOT_SUPPORTED));
}
function testConfig(apiConfig, callback) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof callback, 'function');