Expand description
File utility functions for common operations
Functionsยง
- canonicalize_
with_ context - Canonicalize path with context
- ensure_
dir_ exists - Ensure a directory exists, creating it if necessary
- ensure_
dir_ exists_ sync - Ensure a directory exists (sync)
- parse_
json_ with_ context - Parse JSON with context for better error messages
- read_
file_ with_ context - Read a file with contextual error message
- read_
file_ with_ context_ sync - Read a file with contextual error message (sync)
- read_
json_ file - Read and parse a JSON file
- read_
json_ file_ sync - Read and parse a JSON file (sync)
- serialize_
json_ pretty_ with_ context - Serialize JSON pretty with context
- serialize_
json_ with_ context - Serialize JSON with context
- write_
file_ with_ context - Write a file with contextual error message, ensuring parent directory exists
- write_
file_ with_ context_ sync - Write a file with contextual error message (sync)
- write_
json_ file - Write a JSON file
- write_
json_ file_ sync - Write a JSON file (sync)