We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e48d5 commit fd45020Copy full SHA for fd45020
1 file changed
src/service/iplayerService.ts
@@ -94,10 +94,10 @@ const iplayerService = {
94
const newPath = path.join(completeDir, `${queueItem?.nzbName}.mp4`);
95
loggingService.debug(pid, `Moving ${oldPath} to ${newPath}`);
96
97
- fs.renameSync(oldPath, newPath);
+ fs.copyFileSync(oldPath, newPath);
98
}
99
100
- // Delete the uuid directory after moving the file
+ // Delete the uuid directory and file after moving it
101
loggingService.debug(pid, `Deleting old directory ${uuidPath}`);
102
fs.rmSync(uuidPath, { recursive: true, force: true });
103
0 commit comments