Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmdir --missing-okay not working on ESP32 w. MicroPython #92

Open
dybber opened this issue Jun 25, 2020 · 1 comment
Open

rmdir --missing-okay not working on ESP32 w. MicroPython #92

dybber opened this issue Jun 25, 2020 · 1 comment

Comments

@dybber
Copy link

dybber commented Jun 25, 2020

When issuing ampy rmdir directoryname/ --missing-okay, on a directory that doesn't exist, ampy still errors.

The problem seems to be this line, which checks for a very specific error string:
https://github.com/scientifichackers/ampy/blob/master/ampy/files.py#L292

However, on the ESP32 version of MicroPython, that error string is just:

OSError: -2
@0x5e
Copy link

0x5e commented Feb 1, 2022

Same on me. --missing-okay not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants