Skip to content

normalizeRemotePath

function normalizeRemotePath(input: string): string;

Defined in: src/utils/path.ts:42

Normalizes a remote path using POSIX-style separators without escaping absolute roots.

ParameterTypeDescription
inputstringRemote path that may contain duplicate separators or dot segments.

string

A normalized remote path, / for absolute root, or . for an empty relative path.

ConfigurationError When the input contains unsafe CR or LF characters.