> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method ToSafeSourceString

Namespace: [Phoenix.Pacz.Impl](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/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)`

```csharp theme={null}
public static string ToSafeSourceString(this Uri uri)

```

### Parameters

`uri` [Uri](https://learn.microsoft.com/dotnet/api/system.uri)

The uri to format as an absoluteUri but omiting a 'file' scheme

### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The LocalPath for file URIs or else the AbsolutePath
