PurePath.fromURI() method
pathlib-ts > PurePath > fromURI
PurePath.fromURI() method
Section titled “PurePath.fromURI() method”Creates a path from a file:// URI string.
Signature:
static fromURI(uri: string): PurePath;Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
uri |
string |
URI starting with |
Returns:
A new PurePath matching the URI.
Exceptions
Section titled “Exceptions”The TypeError If uri cannot be converted into a file path.
Remarks
Section titled “Remarks”Returns a pure path instance with no filesystem checks occurring. Delegates to fileURLToPath and thus throws on invalid inputs.