1. That would require going out of the pathlib framework. I can do that but it's more of a mess because then I need to convert the results back to Path objects.
2. Not sure how I would use fnmatch, because I wouldn't want to give it the list of all files recursively, since that would be a long list of files (lots of files in ".git" folder that I want to ignore.) I want it to first ignore everything in the ".git" folder completely without going over all the files, and then include all the other files recursively.