basenameRemotePath
function basenameRemotePath(input: string): string;Defined in: src/utils/path.ts:100
Extracts the final name segment from a normalized remote path.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
input | string | Remote path to inspect. |
Returns
Section titled “Returns”string
The final path segment, or / when the input is the absolute root.
Throws
Section titled “Throws”ConfigurationError When the input contains unsafe characters.