Expand description
Timestamps, file I/O helpers, and input sanitization.
Functionsยง
- format_
file_ size - Formats a file size in a human-readable format.
- generate_
span_ id - Generates a highly unique, 16-character pseudo-random hex string suitable for OTLP span IDs.
- generate_
timestamp - Generates a timestamp string in ISO 8601 format.
- generate_
trace_ id - Generates a highly unique, 32-character pseudo-random hex string suitable for OTLP trace IDs.
- is_
directory_ writable - Checks if a directory is writable.
- is_
file_ writable - Checks if a file exists and is writable.
- parse_
datetime - Parses a datetime string in ISO 8601 format.
- sanitize_
log_ message - Sanitizes a string for use in log messages.
- truncate_
file - Truncates the file at the given path to the specified size.