Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

Path

class Path

Module: System.Storage
Assembly: System.Runtime.dll
Source file: Path.rvn

Inheritance: Object → Path
Implements: EquatableTo<Path>

An immutable validated logical Storage path, with existing native string helpers.

Remarks

Development after Preview 9. Parse checks logical syntax, not existence, authority or native filename validity. Other APIs can still accept strings. See the Path guide for grammar and the distinction between provider paths and native paths.

Properties

3 items
IsAbsolute: bool Gets whether the logical path starts with /.
IsRelative: bool Gets whether this is a relative logical path.
Text: string Gets the accepted spelling unchanged.

Methods

8 items
Static member: Combine(value0: string, value1: string) -> string Combines native host path strings using the existing lexical helper.
Equals(other: Path) -> bool Compares accepted spellings using ordinal equality. Implements EquatableTo<Path>.Equals
Equals(other: object?) -> bool Compares another Path by its exact accepted spelling through Object dispatch. Overrides Object.Equals
Static member: GetFileName(value0: string) -> string Extracts the final component using the existing native path helper.
GetHashCode() -> int Hashes the accepted spelling using System.HashCode. Overrides Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
Static member: Parse(text: string) -> Result<Path, InvalidPathError> Validates a logical path without performing I/O.
ToString() -> string Returns the accepted logical spelling. Overrides Object.ToString