Source From Here
This is what I have:
Use pathlib.Path.rglob from the the pathlib module, which was introduced in Python 3.5.
For cases where matching files beginning with a dot (.); like files in the current directory or hidden files on Unix based system, use the os.walk solution below. For older Python versions, use os.walk to recursively walk a directory and fnmatch.filter to match against a simple expression: