backups: encrypted backups must have .enc extension

This commit is contained in:
Girish Ramakrishnan
2023-07-24 22:25:06 +05:30
parent febac9e8ca
commit 3d5c21d9ca
7 changed files with 28 additions and 42 deletions
+2 -3
View File
@@ -85,13 +85,12 @@ async function exists(apiConfig, backupFilePath) {
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'exists is not implemented');
}
function download(apiConfig, backupFilePath, callback) {
async function download(apiConfig, backupFilePath) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof backupFilePath, 'string');
assert.strictEqual(typeof callback, 'function');
// Result: download stream
callback(new BoxError(BoxError.NOT_IMPLEMENTED, 'download is not implemented'));
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'download is not implemented');
}
async function copy(apiConfig, oldFilePath, newFilePath, progressCallback) {