ampy
ampy copied to clipboard
All files actions (remove and get)
Sometimes I need to remove all files from the board, get all files or put all files to the board. Due to that, I'm using those locally and pretty happy, so I'm suggesting small modifications to the original code.
Also for using vscode debugging I'm running the tool as a module and have added an extra record to .gitignore
.
I'll appreciate any comments=)
To get all files, I would want to avoid adding a new option. Why not just do that if '/' is passed as the REMOTE_FILE argument?
$ ampy get /
Similarly, for the remove all command, this looks much more cleaner -
$ ampy rmdir /
Hey @devxpy , good idea but not that obvious in my opinion.
Usually, people use commands like git add --all
which is more informative for me.
A better name for the option might be --recursive, which corresponds to the -R/-r/--recursive option found in the Unix/Linux commands rm and cp.
I definitely prefer having an option rather than making "/" magic.