How do you move files inside sdcard with micropython?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
anhay20171
Posts: 7
Joined: Wed Jul 06, 2022 5:41 am

Re: How do you move files inside sdcard with micropython?

Post by anhay20171 » Tue Aug 16, 2022 1:40 pm

jimmo wrote:
Fri Jul 08, 2022 1:09 pm
anhay20171 wrote:
Fri Jul 08, 2022 7:51 am
Thank you! It worked! it's amazing when you and the one above all know solution for this issue. I wonder how have you learned to know the solution, i get no results when searching upysh in micropython doc: https://docs.micropython.org/en/latest/ ... ea=default
It's true, we need to do more to make micropython-lib more discoverable.

There's a note at the end of the first section of https://docs.micropython.org/en/latest/ ... index.html about micropython-lib.

I recommended `shutil` because that is the way to do this because that's how you do it in Python, and honestly I have never even noticed upysh before. I think originally this was designed to provide a sort of shell like interface at the MicroPython REPL. Robert knows about the cp() function because he implemented it :) (see https://github.com/micropython/micropyt ... 413a49ff4b )

I wonder if we should move the implementation of these functions over to shutil and make upysh use shutil?
It's been quite a while since the last time i went to this page, i just saw your comment, just want to tell Thank You! to all you :D

Post Reply