Library guide · API index and notation
This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.
import "std/fs/types"
Names used in signatures
Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.
This package has no source imports.
FileKind
Enum · Source
Public OS-independent data contracts. Timestamp fields are Unix epoch based; absent platform data is identified by the corresponding capability flag.
pub enum FileKind {
File, Directory, SymbolicLink, Other
}
Metadata
Struct · Source
pub struct Metadata {
pub kind: FileKind
pub size: u64
pub modified_seconds: i64
pub modified_nanoseconds: u32
pub readonly: bool
pub unix_metadata: bool
pub mode: u32
pub uid: u32
pub gid: u32
pub device: u64
pub inode: u64
pub links: u64
}
Capabilities
Struct · Source
pub struct Capabilities {
pub symbolic_links: bool
pub unix_permissions: bool
pub windows_sharing: bool
pub directory_sync: bool
}