(dirname, dir_fd, dironly, include_hidden=False)
| 201 | |
| 202 | # Recursively yields relative pathnames inside a literal directory. |
| 203 | def _rlistdir(dirname, dir_fd, dironly, include_hidden=False): |
| 204 | names = _listdir(dirname, dir_fd, dironly) |
| 205 | for x in names: |
| 206 | if include_hidden or not _ishidden(x): |
| 207 | yield x |
| 208 | path = _join(dirname, x) if dirname else x |
| 209 | for y in _rlistdir(path, dir_fd, dironly, |
| 210 | include_hidden=include_hidden): |
| 211 | yield _join(x, y) |
| 212 | |
| 213 | |
| 214 | def _lexists(pathname, dir_fd): |