core3-utils

@wixc3/fs-utils on Github

Home > @wixc3/fs-utils > pathToTrueCase

pathToTrueCase() function

Returns case-exact absolute form of the path, similar to fs.realpathSync.native() Trailing segments of the path that don’t exist are left unchanged.

Signature:

export declare function pathToTrueCase(fs: IFileSystem, path: string): string;

Parameters

Parameter Type Description
fs IFileSystem
path string

Returns:

string