(dirname, pattern, dir_fd, dironly, include_hidden=False)
| 147 | # directory. |
| 148 | |
| 149 | def _glob2(dirname, pattern, dir_fd, dironly, include_hidden=False): |
| 150 | assert _isrecursive(pattern) |
| 151 | if not dirname or _isdir(dirname, dir_fd): |
| 152 | yield pattern[:0] |
| 153 | yield from _rlistdir(dirname, dir_fd, dironly, |
| 154 | include_hidden=include_hidden) |
| 155 | |
| 156 | # If dironly is false, yields all file names inside a directory. |
| 157 | # If dironly is true, yields only directory names. |
no test coverage detected