backupformat: getFileExtension

This commit is contained in:
Girish Ramakrishnan
2025-08-01 22:58:19 +02:00
parent 7192439b2c
commit 3cabbc1328
6 changed files with 47 additions and 15 deletions

View File

@@ -254,9 +254,16 @@ async function upload(backupTarget, remotePath, dataLayout, progressCallback) {
});
}
function getFileExtension(encryption) {
assert.strictEqual(typeof encryption, 'boolean');
return encryption ? '.tar.gz.enc' : '.tar.gz';
}
exports = module.exports = {
download,
upload,
getFileExtension,
// exported for testing
_EnsureFileSizeStream: EnsureFileSizeStream