realpathSync

external object realpathSync(source)

Synchronous realpath(3) - return the canonicalized absolute pathname.

Parameters

path

A path to a file. If a URL is provided, it must use the file: protocol.

options

The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.

Functions

Link copied to clipboard
fun native(path: PathLike): String
fun native(path: PathLike, options: EncodingOption = definedExternally): String