Skip to content

Commit 51c8748

Browse files
fix: uploading to nested dir would fail if missing
1 parent 7385ade commit 51c8748

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@
928928
"cheap-watch": "^1.0.4",
929929
"consolite": "^0.3.8",
930930
"hookar": "^0.0.7-0",
931-
"micropython-ctl-cont": "^1.14.3",
931+
"micropython-ctl-cont": "^1.15.1",
932932
"picomatch": "^2.3.1",
933933
"prompts": "^2.4.2",
934934
"serialport": "^10.4.0"

src/Device.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ class Device {
479479
*/
480480
async upload(source, destination, options) {
481481
destination = posix.join(this.config.rootPath, `/${destination}`.replace(/\/+/g, "/"));
482+
await this.adapter.mkdirs(destination.replace(/\/.+?$/, ""));
482483
const root = source;
483484
const ignores = [...this.pymakr.config.get().get("ignore")];
484485
const pymakrConfig = getNearestPymakrConfig(source);

0 commit comments

Comments
 (0)