def validate_solution_folder()

in solutions_builder/cli/cli_utils.py [0:0]


def validate_solution_folder(path):
  """Check if the solution folder has sb.yaml file."""
  if not os.path.isfile(path + "/sb.yaml"):
    confirm(
        f"Path {path} is not a valid solution folder: missing sb.yaml.\n"
        "Do you want to initialize with a new `sb.yaml`?")
    run_module_template("init_sb_yaml", modules_dir="helper_modules")

  return True