File Utils
Utility functions for working with files.
- vibe_core.file_utils.write_file(path, contents)
Write contents to a file at the given path.
The function creates 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)
Write 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.