Module fs

Module fs 

Source
Expand description

Filesystem abstraction layer.

Provides unified APIs that work with both sync and async runtimes. When the blocking feature is disabled (default), async operations use tokio. When blocking is enabled, all operations are synchronous.

Functionsยง

create_dir_all
Creates a directory and all parent directories.
open_buffered
Opens a file for buffered reading.
read_to_string
Reads a file to string.
write
Writes content to a file.