New Blog Post

How to use glob in Python

glob is a useful module included in Python. 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/ |– text_01.txt |– text_02.txt |– text_03.txt |– dir_b/ |– text_01.txt |– text_02.txt |– text_03.txt |– test_glob.py Find files in directory Let…