storage: downloadDir is not part of interface

This commit is contained in:
Girish Ramakrishnan
2022-04-30 16:10:41 -07:00
parent ea01586b52
commit 94e70aca33
2 changed files with 2 additions and 30 deletions
+1 -13
View File
@@ -19,7 +19,6 @@ exports = module.exports = {
exists,
download,
downloadDir,
copy,
listDir,
@@ -36,8 +35,7 @@ exports = module.exports = {
const assert = require('assert'),
BoxError = require('../boxerror.js'),
DataLayout = require('../datalayout.js'),
EventEmitter = require('events');
DataLayout = require('../datalayout.js');
function removePrivateFields(apiConfig) {
// in-place removal of tokens and api keys with constants.SECRET_PLACEHOLDER
@@ -89,16 +87,6 @@ function download(apiConfig, backupFilePath, callback) {
callback(new BoxError(BoxError.NOT_IMPLEMENTED, 'download is not implemented'));
}
function downloadDir(apiConfig, backupFilePath, destDir) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof backupFilePath, 'string');
assert.strictEqual(typeof destDir, 'string');
var events = new EventEmitter();
process.nextTick(function () { events.emit('done', null); });
return events;
}
async function copy(apiConfig, oldFilePath, newFilePath, progressCallback) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof oldFilePath, 'string');