File Utils

vibe_core.file_utils.write_file(path, contents)

Writes contents to a file at the given path, creating the parent directory if it doesn’t exist yet.

Parameters:
  • path (str) – The file path to write to.

  • contents (str) – The contents to write in the file.

vibe_core.file_utils.write_yaml(path, contents)

Writes contents to a YAML file, creating the parent directory if it doesn’t exist yet.

Parameters:
  • path (str) – The path of the file to write.

  • contents (Dict[str, Any]) – The contents to write to the file.