Skip to content

Commit 1674417

Browse files
committed
FIX: copy instead of move files on upload
1 parent 6b6560c commit 1674417

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

launcher/src/backend/SSHService.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -676,14 +676,8 @@ export class SSHService {
676676
try {
677677
if (err) throw err;
678678
const readStream = fs.createReadStream(localPath);
679-
// Handle read stream end
680-
readStream.on("end", () => {
681-
fs.unlinkSync(localPath);
682-
});
683-
684679
// Handle read stream errors
685680
readStream.on("error", (error) => {
686-
fs.unlinkSync(localPath);
687681
stream.end();
688682
reject(new Error("Failed to read local file: " + error.message));
689683
});

0 commit comments

Comments
 (0)