Path.asUri

string asUri() const @safe

Returns a file URI for this path (RFC 8089).

Each path segment is percent-encoded: characters outside the RFC 3986 unreserved set (and the `/` separator) are escaped so spaces, `#`, `?`, and non-ASCII bytes never corrupt the URI structure.

Returns

The file URI as a string.