(dirname, pattern, dir_fd, dironly, include_hidden=False)
| 103 | # takes a literal basename (so it only has to check for its existence). |
| 104 | |
| 105 | def _glob1(dirname, pattern, dir_fd, dironly, include_hidden=False): |
| 106 | names = _listdir(dirname, dir_fd, dironly) |
| 107 | if include_hidden or not _ishidden(pattern): |
| 108 | names = (x for x in names if include_hidden or not _ishidden(x)) |
| 109 | return fnmatch.filter(names, pattern) |
| 110 | |
| 111 | def _glob0(dirname, basename, dir_fd, dironly, include_hidden=False): |
| 112 | if basename: |