(dirname, pattern, dir_fd, dironly, include_hidden=False)
| 131 | # directory. |
| 132 | |
| 133 | def _glob2(dirname, pattern, dir_fd, dironly, include_hidden=False): |
| 134 | assert _isrecursive(pattern) |
| 135 | if not dirname or _isdir(dirname, dir_fd): |
| 136 | yield pattern[:0] |
| 137 | yield from _rlistdir(dirname, dir_fd, dironly, |
| 138 | include_hidden=include_hidden) |
| 139 | |
| 140 | # If dironly is false, yields all file names inside a directory. |
| 141 | # If dironly is true, yields only directory names. |
no test coverage detected