(dirname, dir_fd, dironly)
| 196 | return |
| 197 | |
| 198 | def _listdir(dirname, dir_fd, dironly): |
| 199 | with contextlib.closing(_iterdir(dirname, dir_fd, dironly)) as it: |
| 200 | return list(it) |
| 201 | |
| 202 | # Recursively yields relative pathnames inside a literal directory. |
| 203 | def _rlistdir(dirname, dir_fd, dironly, include_hidden=False): |