Skip to content

[F] getNormalizedAbsolutePath

function getNormalizedAbsolutePath(fileName, currentDirectory): string;

Combine a file name with the supplied current directory and reduce . and .. components. An absolute file name ignores the current directory; no process working directory is inferred.

ParameterType
fileNamestring
currentDirectorystring | undefined

string