Skip to content

basenameRemotePath

function basenameRemotePath(input: string): string;

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

Extracts the final name segment from a normalized remote path.

ParameterTypeDescription
inputstringRemote path to inspect.

string

The final path segment, or / when the input is the absolute root.

ConfigurationError When the input contains unsafe characters.