DirectoryEntry
Owns a native filename and an optional advisory type hint. Name is one relative component, not an absolute/openable path by itself. It preserves non-Unicode native units. Enumeration movement/advance/cleanup never invalidates this owner. Kind is absent when the OS does not provide a hint; even present hints are not stable metadata or a race-free access guarantee. This value allocates through Path ownership and adds no synchronization.
Module std.fs
import std.fs;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
DirectoryEntry
pub final class DirectoryEntryOwns a native filename and an optional advisory type hint. Name is one relative component, not an absolute/openable path by itself. It preserves non-Unicode native units. Enumeration movement/advance/cleanup never invalidates this owner. Kind is absent when the OS does not provide a hint; even present hints are not stable metadata or a race-free access guarantee. This value allocates through Path ownership and adds no synchronization.
DirectoryEntry.Name
pub Name: Path;Exact owned native component, independent of cursor lifetime.
DirectoryEntry.Kind
pub Kind: FileKind?;Optional advisory target-provided type hint.
DirectoryEntry.init
pub init(mut Name: Path, Kind: FileKind?)Transfers native name ownership without copying. Name: Owned relative native component. Kind: Optional advisory kind.