[issue22276] pathlib glob issues
João Guerra added the comment: Yes. -- ___ Python tracker <http://bugs.python.org/issue22276> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth
[issue22276] pathlib glob issues
New submission from João Guerra: Both fnmatch and glob support the "*/" glob. However, pathlib does not seem to handle this kind of globs correctly. dir = Path("/a/directory/") file = Path("/a/file") print(dir.match("*/")) # True print(file.match(&quo