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