win32
local win32 = require("@std/path/win32")win32.basename
Returns the last component of path, or nil if the path has no components.
(path: Pathlike) -> string?win32.dirname
Returns the directory portion of path as a string (everything except the last component).
(path: Pathlike) -> stringwin32.drive
Returns a Path representing just the drive root of path (e.g. C:\). Errors if path has no drive letter.
(path: Pathlike) -> Pathwin32.extname
Returns the file extension of path (including the leading dot), or "" if there is none.
(path: Pathlike) -> stringwin32.format
Converts path to its Windows string representation using backslash separators.
(path: Pathlike) -> stringwin32.isAbsolute
Returns true if path is absolute (drive-rooted or UNC).
(path: Pathlike) -> booleanwin32.join
Joins one or more path segments into a single Path. Each segment after the first must be relative.
(...: Pathlike) -> Pathwin32.normalize
Returns a normalized form of path, resolving . and .. components and removing redundant separators.
(path: Pathlike) -> Pathwin32.parse
Parses path into a structured Path value.
(path: Pathlike) -> Pathwin32.pathmt
pathinterface.PathInterfacewin32.pathmt:__tostring
() -> stringwin32.relative
Returns the relative path from from to to. Both paths must have the same kind and drive.
(from: Pathlike, to: Pathlike) -> Pathwin32.resolve
Resolves a sequence of paths into an absolute Path, processing right-to-left and falling back to the current working directory.
(...: Pathlike) -> Path