ampy icon indicating copy to clipboard operation
ampy copied to clipboard

`rmdir --missing-okay` not working on ESP32 w. MicroPython

Open dybber opened this issue 4 years ago • 1 comments

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

dybber avatar Jun 25 '20 11:06 dybber

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

0x5e avatar Feb 01 '22 12:02 0x5e