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