glob iteratively list all files code example Example: python glob subdirectories import glob subdirectories = glob.glob("./*/")