(dirname, dir_fd, dironly, include_hidden=False)
| 195 | |
| 196 | # Recursively yields relative pathnames inside a literal directory. |
| 197 | def _rlistdir(dirname, dir_fd, dironly, include_hidden=False): |
| 198 | names = _listdir(dirname, dir_fd, dironly) |
| 199 | for x in names: |
| 200 | if include_hidden or not _ishidden(x): |
| 201 | yield x |
| 202 | path = _join(dirname, x) if dirname else x |
| 203 | for y in _rlistdir(path, dir_fd, dironly, |
| 204 | include_hidden=include_hidden): |
| 205 | yield _join(x, y) |
| 206 | |
| 207 | |
| 208 | def _lexists(pathname, dir_fd): |