What would be the simplest way to have .gitignore style fnmatch() with Python. Looks like that stdlib does not provide a match() function which would match a path spec against an UNIX style path regex.

.gitignore have both paths and files with wildcards to be (black)listed

Edit
Report