-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
Description
Right now it says:
Lines 871 to 876 in e089f23
def iterdir(self): | |
"""Iterate over the files in this directory. Does not yield any | |
result for the special paths '.' and '..'. | |
""" | |
for name in os.listdir(self): | |
yield self._make_child_relpath(name) |
This part is confusing:
Does not yield any result for the special paths '.' and '..'
It might be understood as Path('.').iterdir()
not yileding any results.
I think, that it would be better to use the exact same wording as in docs: https://docs.python.org/3/library/pathlib.html#pathlib.Path.iterdir
the special entries '.' and '..' are not included.
I will send a PR.