how to glob code example Example: python glob subdirectories import glob subdirectories = glob.glob("./*/")