--- a/eric6/MicroPython/MicroPythonCommandsInterface.py Tue Feb 02 16:39:47 2021 +0100 +++ b/eric6/MicroPython/MicroPythonCommandsInterface.py Tue Feb 02 19:41:04 2021 +0100 @@ -371,7 +371,7 @@ " try:", " files = __os_.listdir(dirname)", " except OSError:", - " return None", + " return []", " if dirname in ('', '/'):", " return list((f, stat(f)) for f in files if" " is_visible(f, showHidden))",