feat(core): micropython 板卡文件管理 右键菜单添加 剪切复制粘贴 选项

This commit is contained in:
王立帮
2025-08-24 04:33:08 +08:00
parent 16a72f1773
commit 4f26f8e9f4
14 changed files with 299 additions and 35 deletions

View File

@@ -337,7 +337,7 @@ def put(local, remote):
else:
sys.stdout.write("Skip " + filename + "\n")
sys.stdout.flush()
board_files.putDir(file_name_list, data_list, False)
board_files.putdir(file_name_list, data_list, False)
'''
for filename in child_files:
@@ -404,6 +404,22 @@ def rename(oldname, newname):
board_files.rename(oldname, newname)
@cli.command()
@click.argument("local", required=True)
@click.argument("remote", required=True)
def cpdir(local, remote):
board_files = files.Files(_board)
board_files.cpdir(local, remote)
@cli.command()
@click.argument("local", required=True)
@click.argument("remote", required=True)
def cpfile(local, remote):
board_files = files.Files(_board)
board_files.cpfile(local, remote)
@cli.command()
@click.argument("local_file")
@click.option(