Implement downloadDir for flat-file format

This commit is contained in:
Girish Ramakrishnan
2017-09-23 14:27:35 -07:00
parent e43413e063
commit b0f85678d4
8 changed files with 175 additions and 10 deletions
+10
View File
@@ -9,6 +9,7 @@
exports = module.exports = {
upload: upload,
download: download,
downloadDir: downloadDir,
copy: copy,
remove: remove,
@@ -40,6 +41,15 @@ function download(apiConfig, backupFilePath, callback) {
callback(new Error('not implemented'));
}
function downloadDir(apiConfig, backupFilePath, destDir, callback) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof backupFilePath, 'string');
assert.strictEqual(typeof destDir, 'string');
assert.strictEqual(typeof callback, 'function');
callback(new Error('not implemented'));
}
function copy(apiConfig, oldFilePath, newFilePath, callback) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof oldFilePath, 'string');