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 71922fa commit f3cab1aCopy full SHA for f3cab1a
src/Device.js
@@ -491,8 +491,9 @@ class Device {
491
* }} options
492
*/
493
async upload(source, destination, options) {
494
- destination = posix.join(this.config.rootPath, `/${destination}`.replace(/\/+/g, "/"));
495
- await this.adapter.mkdirs(destination.replace(/\/.+?$/, ""));
+ destination = posix.join(this.config.rootPath, destination.replace(/[\/\\]+/g, "/"));
+ await this.adapter.mkdirs(dirname(destination));
496
+
497
const root = source;
498
const ignores = [...this.pymakr.config.get().get("ignore")];
499
const pymakrConfig = getNearestPymakrConfig(source);
0 commit comments