Expand description
Extended utilities for working with files and filesystems in Rust.
Modules§
- async_
std async-std - fs_err2
fs-err2 - fs_err3
fs-err3 - fs_
err2_ tokio fs-err2-tokio - fs_
err3_ tokio fs-err3-tokio - smol
smol - tokio
tokio
Structs§
- FsStats
FsStatscontains some common stats about a file system.
Enums§
- TryLock
Error - The error returned from
FileExt::try_lockandFileExt::try_lock_shared.
Traits§
- FileExt
sync - Extension trait for
std::fs::Filewhich provides allocation and locking methods.
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-privileged 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.
- 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.