How to use glob in Python

Motivation Sometimes you need to find files across multiple directories and / or directory hierarchies according to certain pattern. E.g. find all image files with the jpg extension You can use it to find files in a directory by using wildcard semantics. Let’s say we have a directory structure like this: glob_test/ |– dir_a/ |–…