(target: string)
| 128 | } |
| 129 | |
| 130 | private async moveFile(sourcePath: string, destinationPath: string): Promise<void> { |
| 131 | try { |
| 132 | await fs.rename(sourcePath, destinationPath); |
| 133 | } catch { |
| 134 | await fs.copyFile(sourcePath, destinationPath); |
| 135 | await fs.unlink(sourcePath); |