storage: rename getBackupPath to getBasePath
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user