Browse the docs

silk.platform.windows.host_path.

Windows host path discovery for tools. These operations intentionally resolve links in the machine namespace; they do not establish a confined filesystem root.

Import as WindowsHostPath with import silk.platform.windows.host_path as WindowsHostPath.

Public declarations: 4.

wide#

silk
pub effect fn wide(path: &Path) -> Option<List<u16>> ! OutOfMemoryError ? &mut Allocator

Returns a NUL-terminated UTF-16 host name for a machine path, or None for invalid names.

canonicalBytes#

silk
pub effect fn canonicalBytes(bytes: &[u8]) -> Option<Bytes> ! OutOfMemoryError ? &mut Allocator

Returns a normalized machine path for an existing file or directory, following host links. Host failures and invalid names return None; allocation failure remains an Effect.

canonical#

silk
pub effect fn canonical(path: string) -> Option<Bytes> ! OutOfMemoryError ? &mut Allocator

Returns a canonical machine path for an existing text host path, following host links. Host failures and invalid names return None; allocation failure remains an Effect.

executable#

silk
pub effect fn executable() -> Option<Bytes> ! OutOfMemoryError ? &mut Allocator

Finds the loaded executable through the OS, independent of argv[0] or PATH. Returns a machine path; host failure returns None.

Category: Windows platform.

Profiles: x86_64-pc-windows-msvc.

View the source of this page