There was an error while loading. Please reload this page.
1 parent f01d5fb commit b4de697Copy full SHA for b4de697
tools/mpremote/mpremote/commands.py
@@ -137,13 +137,13 @@ def _list_recursive(files, path):
137
raise CommandError("'cp -r' source files must be local")
138
_list_recursive(src_files, path)
139
known_dirs = {""}
140
- state.transport.exec_("import os")
+ state.transport.exec("import os")
141
for dir, file in src_files:
142
dir_parts = dir.split("/")
143
for i in range(len(dir_parts)):
144
d = "/".join(dir_parts[: i + 1])
145
if d not in known_dirs:
146
- state.transport.exec_(
+ state.transport.exec(
147
"try:\n os.mkdir('%s')\nexcept OSError as e:\n print(e)" % d
148
)
149
known_dirs.add(d)
0 commit comments