Skip to main content
Namespace: Phoenix.Pacz.Impl
Assembly: Phoenix.Pacz.dll

ToSafeSourceString(Uri)

Get a string representation of the URI, but omits the “file:///” scheme for file URI This makes the string play nice with methods like System.IO.File.Exists(System.String)

Parameters

uri Uri The uri to format as an absoluteUri but omiting a ‘file’ scheme

Returns

string The LocalPath for file URIs or else the AbsolutePath