PurePath.asURI() method
pathlib-ts > PurePath > asURI
PurePath.asURI() method
Section titled “PurePath.asURI() method”Converts the path to a file:// URI string.
Signature:
asURI(): string;Returns:
string
RFC 8089 compliant file URI.
Exceptions
Section titled “Exceptions”The Error class If the path is relative.
Remarks
Section titled “Remarks”The path must be absolute. The output is suitable for environments that consume RFC 8089 URIs.