(s)
| 237 | magic_check_bytes = re.compile(b'([*?[])') |
| 238 | |
| 239 | def has_magic(s): |
| 240 | if isinstance(s, bytes): |
| 241 | match = magic_check_bytes.search(s) |
| 242 | else: |
| 243 | match = magic_check.search(s) |
| 244 | return match is not None |
| 245 | |
| 246 | def _ishidden(path): |
| 247 | return path[0] in ('.', b'.'[0]) |
no test coverage detected