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 939f046 commit 54ad7d8Copy full SHA for 54ad7d8
src/commands/index.js
@@ -121,7 +121,11 @@ class Commands {
121
await this.commands.upload({ fsPath: templatePath }, device, "/");
122
} else {
123
progress.report({ message: "Erasing device... Creating root dir" });
124
- await device.adapter.mkdir(device.config.rootPath);
+ try {
125
+ await device.adapter.mkdir(device.config.rootPath);
126
+ } catch (err) {
127
+ if (!err.message.match(/OSError: \[Errno 17\] EEXIST/)) throw err;
128
+ }
129
}
130
131
resolve();
0 commit comments