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

API Browser

Method

Parse

static func Parse(text: string) -> Result<Path, InvalidPathError>

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

Validates a logical path without performing I/O.

Parameters

Name Type Description
text String The logical path spelling to validate.

Return value

Result<Path, InvalidPathError>

Ok with an immutable Path, or Error with InvalidPathError.

Remarks

Accepts slash-separated names, optional leading slash, standalone / and .; rejects empty input, NUL, backslash, colon, doubled/trailing separators and dot/parent segments. Preserves accepted spelling.