Skip to content

[F] ensureTrailingDirectorySeparator

function ensureTrailingDirectorySeparator(path): string;

Append / unless the path already ends in either recognized directory separator.

ParameterType
pathstring

string