(dirname, pattern, dir_fd, dironly, include_hidden=False)
| 112 | # takes a literal basename (so it only has to check for its existence). |
| 113 | |
| 114 | def _glob1(dirname, pattern, dir_fd, dironly, include_hidden=False): |
| 115 | names = _listdir(dirname, dir_fd, dironly) |
| 116 | if not (include_hidden or _ishidden(pattern)): |
| 117 | names = (x for x in names if not _ishidden(x)) |
| 118 | return fnmatch.filter(names, pattern) |
| 119 | |
| 120 | def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False): |
| 121 | if basename: |