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