get subdirectories files in python glob code example Example: python glob subdirectories import glob subdirectories = glob.glob("./*/")