We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3fcd2b + c4436d6 commit 9d62c21Copy full SHA for 9d62c21
adafruit_pathlib.py
@@ -350,7 +350,7 @@ def iterdir(self):
350
OSError: If self.is_dir() is False.
351
"""
352
if not self.is_dir():
353
- raise OSError(errno.ENOTDIR, f"Not a directory: {self._path}")
+ raise OSError(f"Not a directory: {self._path}")
354
for name in os.listdir(self._path):
355
yield Path(self._path, name)
356
0 commit comments