v0.1.31
Asynchronous realpath(3) - return the canonicalized absolute pathname.
A path to a file. If a URL is provided, it must use the file: protocol.
The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.
Asynchronous realpath(3) - return the canonicalized absolute pathname.
A path to a file. If a URL is provided, it must use the file: protocol.
The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.
Asynchronous realpath(3) - return the canonicalized absolute pathname.
A path to a file. If a URL is provided, it must use the file: protocol.
Generated using TypeDoc
Asynchronously computes the canonical pathname by resolving
.,.., and symbolic links.A canonical pathname is not necessarily unique. Hard links and bind mounts can expose a file system entity through many pathnames.
This function behaves like
realpath(3), with some exceptions:realpath(3)implementation supports.The
callbackgets two arguments(err, resolvedPath). May useprocess.cwdto resolve relative paths.Only paths that can be converted to UTF8 strings are supported.
The optional
optionsargument can be a string specifying an encoding, or an object with anencodingproperty specifying the character encoding to use for the path passed to the callback. If theencodingis set to'buffer', the path returned will be passed as aBufferobject.If
pathresolves to a socket or a pipe, the function will return a system dependent name for that object.