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