(dirname, pattern, dir_fd, dironly, include_hidden=False)
| 133 | # takes a literal basename (so it only has to check for its existence). |
| 134 | |
| 135 | def _glob1(dirname, pattern, dir_fd, dironly, include_hidden=False): |
| 136 | names = _listdir(dirname, dir_fd, dironly) |
| 137 | if not (include_hidden or _ishidden(pattern)): |
| 138 | names = (x for x in names if not _ishidden(x)) |
| 139 | return fnmatch.filter(names, pattern) |
| 140 | |
| 141 | def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False): |
| 142 | if basename: |