Crate fs4

Source
Expand description

Extended utilities for working with files and filesystems in Rust.

Modules§

async_stdasync-std
fs_err2fs-err2
fs_err3fs-err3
fs_err2_tokiofs-err2-tokio
fs_err3_tokiofs-err3-tokio
fs_stdsync
smolsmol
tokiotokio

Structs§

FsStats
FsStats contains some common stats about a file system.

Functions§

allocation_granularity
Returns the filesystem’s disk space allocation granularity in bytes. The provided path may be for any file in the filesystem.
available_space
Returns the available space in bytes to non-priveleged users in the file system containing the provided path.
free_space
Returns the number of free bytes in the file system containing the provided path.
lock_contended_error
Returns the error that a call to a try lock method on a contended file will return.
statvfs
Get the stats of the file system containing the provided path.
total_space
Returns the total space in bytes in the file system containing the provided path.