(dirname, dir_fd, dironly, include_hidden=False)
| 179 | |
| 180 | # Recursively yields relative pathnames inside a literal directory. |
| 181 | def _rlistdir(dirname, dir_fd, dironly, include_hidden=False): |
| 182 | names = _listdir(dirname, dir_fd, dironly) |
| 183 | for x in names: |
| 184 | if include_hidden or not _ishidden(x): |
| 185 | yield x |
| 186 | path = _join(dirname, x) if dirname else x |
| 187 | for y in _rlistdir(path, dir_fd, dironly, |
| 188 | include_hidden=include_hidden): |
| 189 | yield _join(x, y) |
| 190 | |
| 191 | |
| 192 | def _lexists(pathname, dir_fd): |