Method ToSafeSourceString Last update: 19.06.2026 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) public static string ToSafeSourceString(this Uri uri) 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