From b852c7f0bcd224f13cecfb8f2962034f8b2ad8f8 Mon Sep 17 00:00:00 2001 From: Giedrius <10329476+giedriuzz@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:46:13 +0200 Subject: [PATCH 1/3] Fix download command syntax in mpremote.ts --- src/mpremote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpremote.ts b/src/mpremote.ts index fa59cb1..02a5c1f 100644 --- a/src/mpremote.ts +++ b/src/mpremote.ts @@ -48,7 +48,7 @@ export class MPRemote { download(port: string, remotePath: string, localPath: string) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp ':${remotePath}' '${localPath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp :${remotePath} ${localPath}`); } } From d933c95a5592728b42975f093b76069b29933821 Mon Sep 17 00:00:00 2001 From: Giedrius <10329476+giedriuzz@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:46:53 +0200 Subject: [PATCH 2/3] Fix upload command syntax in mpremote.ts --- src/mpremote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpremote.ts b/src/mpremote.ts index 02a5c1f..af18069 100644 --- a/src/mpremote.ts +++ b/src/mpremote.ts @@ -150,7 +150,7 @@ export class MPRemote { upload(port: string, localPath: string, remotePath: string) { if (port && localPath && remotePath) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp '${localPath}' ':${remotePath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp ${localPath} :${remotePath}`); } } From ce44aa3c836c2d35c976ebd249a27e1c16f66b94 Mon Sep 17 00:00:00 2001 From: Giedrius <10329476+giedriuzz@users.noreply.github.com> Date: Wed, 4 Mar 2026 21:10:43 +0200 Subject: [PATCH 3/3] Escape single quotes in terminal command strings --- src/mpremote.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpremote.ts b/src/mpremote.ts index af18069..93e3024 100644 --- a/src/mpremote.ts +++ b/src/mpremote.ts @@ -48,7 +48,7 @@ export class MPRemote { download(port: string, remotePath: string, localPath: string) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp :${remotePath} ${localPath}`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp :'${remotePath}' '${localPath}'`); } } @@ -150,7 +150,7 @@ export class MPRemote { upload(port: string, localPath: string, remotePath: string) { if (port && localPath && remotePath) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp ${localPath} :${remotePath}`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp '${localPath}' :'${remotePath}'`); } }