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