dhylands / rshell

Remote Shell for MicroPython
MIT License
941 stars 133 forks source link

Feature Request mv / rename #46

Open diginfo opened 6 years ago

diginfo commented 6 years ago

Would be good to have this command too:

mv pyboard/boot.py pyboard/boot.px

dhylands commented 6 years ago

I agree. I've wanted to use that several times recently myself.

rhubarbdog commented 5 years ago

@dhylands have you worked on this or is it something I could do for you and offer a pull request. I love rshell nice one

dhylands commented 5 years ago

Feel free to submit a PR. I've already addressed your other two issues that you raised (better error for baod = RED) and improved ls in regards to symlinks. You'll find it in the latest master.

There is a script called r.py which I use to run rshell directly from the git repository.

peterhinch commented 5 years ago

If my proposed macro facility is implemented, this can be done with the macro

macros['mv'] = 'cp {0} {1}; rm {0}'