mirror of
https://github.com/strapi/strapi.git
synced 2025-11-17 02:28:30 +00:00
Avoid creating the backup folder if assets are not transfered
This commit is contained in:
parent
1b8a5a7866
commit
fff1cd3933
@ -727,6 +727,9 @@ class TransferEngine<
|
|||||||
|
|
||||||
async transferAssets(): Promise<void> {
|
async transferAssets(): Promise<void> {
|
||||||
const stage: TransferStage = 'assets';
|
const stage: TransferStage = 'assets';
|
||||||
|
if (this.shouldSkipStage(stage)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const source = await this.sourceProvider.createAssetsReadStream?.();
|
const source = await this.sourceProvider.createAssetsReadStream?.();
|
||||||
const destination = await this.destinationProvider.createAssetsWriteStream?.();
|
const destination = await this.destinationProvider.createAssetsWriteStream?.();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user