Expand description
扩展
Structs§
- FsStats
FsStatscontains some common stats about a file system.
Enums§
- File
Access - This will override the read, write, and append flags on the OpenOptions structure. This method provides fine-grained control over the permissions to read, write and append data, attributes (like hidden and system), and extended attributes.
- File
Attribute - 文件属性
- File
Custom - 安全
- File
Security - 安全
- File
Share - 共享
Traits§
- FileExt
- Extension trait for
std::fs::Filewhich provides allocation, duplication and locking methods. - File
Options Ext - Extension trait for
std::fs::OpenOptionswhich provides allocation, duplication 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-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.