Skip to content

Iterator ilistdir does not exist on WiPy3 (latest official PyCOM version of mp: 1.17)  #113

Description

@faon

Hello,
I tried a few ways to deal with ESP32 MCU, and I am very pleased by mpfshell.
But when handling my WiPy3, I found that 'ls' command is not working : it is due to the ilistdir call in the imported library
python3.8/dist-packages/mp/mpfexp.py

def ls(self, add_files=True, add_dirs=True, add_details=False):
files = []
try:
res = self.eval("list(uos.ilistdir('%s'))" % self.dir)
except Exception as e:
if _was_file_not_existing(e):

Up to now, I use mpremote when working with WiPy3, but it should be nice to use mpfshell in everycase !

Best regrads, thanks for your work,
Alain

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions