storage: rename getBackupPath to getBasePath

This commit is contained in:
Girish Ramakrishnan
2022-04-04 14:08:24 -07:00
parent a05e564ae6
commit 54934c41a7
6 changed files with 21 additions and 21 deletions

View File

@@ -43,12 +43,12 @@ function getBackupFilePath(backupConfig, backupId, format) {
assert.strictEqual(typeof backupId, 'string');
assert.strictEqual(typeof format, 'string');
const backupPath = api(backupConfig.provider).getBackupPath(backupConfig);
const basePath = api(backupConfig.provider).getBasePath(backupConfig);
if (format === 'tgz') {
const fileType = backupConfig.encryption ? '.tar.gz.enc' : '.tar.gz';
return path.join(backupPath, backupId+fileType);
return path.join(basePath, backupId+fileType);
} else {
return path.join(backupPath, backupId);
return path.join(basePath, backupId);
}
}