[issue22276] pathlib glob issues

2014-08-28 Thread João Guerra
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

2014-08-26 Thread João Guerra
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