From b4de697ad10427a1513c02160abd0662f55701d5 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Fri, 9 Jun 2023 13:34:08 +1000 Subject: [PATCH] tools/mpremote: Fix exec_ -> exec in commands.py. This was missed in the pyboard refactor and is preventing `cp -r` from working. Signed-off-by: Jim Mussared --- tools/mpremote/mpremote/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mpremote/mpremote/commands.py b/tools/mpremote/mpremote/commands.py index ef1a7643cb..de12aa0bb1 100644 --- a/tools/mpremote/mpremote/commands.py +++ b/tools/mpremote/mpremote/commands.py @@ -137,13 +137,13 @@ def do_filesystem(state, args): raise CommandError("'cp -r' source files must be local") _list_recursive(src_files, path) known_dirs = {""} - state.transport.exec_("import os") + state.transport.exec("import os") for dir, file in src_files: dir_parts = dir.split("/") for i in range(len(dir_parts)): d = "/".join(dir_parts[: i + 1]) if d not in known_dirs: - state.transport.exec_( + state.transport.exec( "try:\n os.mkdir('%s')\nexcept OSError as e:\n print(e)" % d ) known_dirs.add(d)