Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Right now it says:
Lines 871 to 876 ine089f23
| defiterdir(self): | |
| """Iterate over the files in this directory. Does not yield any | |
| result for the special paths '.' and '..'. | |
| """ | |
| fornameinos.listdir(self): | |
| yieldself._make_child_relpath(name) |
This part is confusing:
Does not yield any result for the special paths '.' and '..'
It might be understood asPath('.').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.