Skip to content

Commit a2ee895

Browse files
author
ozelot379
committed
Fix output folder rename if it exists already
1 parent b524edf commit a2ee895

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/output/LocalFolderOutput.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ class LocalFolderOutput extends AbstractOutput {
6767
* @inheritDoc
6868
*/
6969
async rename(from, to) {
70-
await fs.ensureDir(this.p(path.dirname(to)));
71-
72-
return fs.rename(this.p(from), this.p(to));
70+
return fs.move(this.p(from), this.p(to), {
71+
overwrite: true
72+
});
7373
}
7474

7575
/**

0 commit comments

Comments
 (0)