fix: Error: EEXIST: file already exists
This commit is contained in:
parent
9f56a367a1
commit
307ebd314c
@ -43,6 +43,7 @@ export async function download (remote, local) {
|
||||
const tempFile = local + '.downloading';
|
||||
await mkdirp(path.dirname(tempFile));
|
||||
await downloadAsset(asset, tempFile);
|
||||
await remove(local);
|
||||
await moveFile(tempFile, local);
|
||||
await remove(tempFile);
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user