Skip to content

Method NormalizePath

Namespace: Belay.Sync
Assembly: Belay.Sync.dll

NormalizePath(string?)

Normalizes a device path by ensuring it uses forward slashes and removing redundant separators.

csharp
public static string NormalizePath(string? path)

Parameters

path string?

The path to normalize.

Returns

string

The normalized device path.

Exceptions

ArgumentException

Thrown when the path is invalid.

Released under the Apache License 2.0.