Skip to main content

Module io

Module io 

Source
Expand description

Async file I/O utilities built on Tokio.

Provides convenience functions for reading/writing files in an async context, path resolution helpers, and a file change detector.

Functionsยง

exists
Check if a path exists.
read_bytes
Read an entire file as bytes (async).
read_to_string
Read an entire file as a string (async).
resolve
Resolve a relative path against a base directory, canonicalizing the result.
walk_files
Walk a directory recursively, yielding all file paths matching extensions.
write_bytes
Write bytes to a file (async), creating parent directories if needed.
write_string
Write a string to a file (async), creating parent directories if needed.