(dirname, pattern, dir_fd, dironly, include_hidden=False)
| 153 | # directory. |
| 154 | |
| 155 | def _glob2(dirname, pattern, dir_fd, dironly, include_hidden=False): |
| 156 | assert _isrecursive(pattern) |
| 157 | if not dirname or _isdir(dirname, dir_fd): |
| 158 | yield pattern[:0] |
| 159 | yield from _rlistdir(dirname, dir_fd, dironly, |
| 160 | include_hidden=include_hidden) |
| 161 | |
| 162 | # If dironly is false, yields all file names inside a directory. |
| 163 | # If dironly is true, yields only directory names. |
no test coverage detected
searching dependent graphs…