function realpath.native
Jump to headingnative(path: PathLike,options: EncodingOption,callback: (err: ErrnoException | null,resolvedPath: string,) => void,): void
Asynchronous realpath(3)
.
The callback
gets two arguments (err, resolvedPath)
.
Only paths that can be converted to UTF8 strings are supported.
The optional options
argument can be a string specifying an encoding, or an
object with an encoding
property specifying the character encoding to use for
the path passed to the callback. If the encoding
is set to 'buffer'
,
the path returned will be passed as a Buffer
object.
On Linux, when Node.js is linked against musl libc, the procfs file system must
be mounted on /proc
in order for this function to work. Glibc does not have
this restriction.
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingoptions: EncodingOption
Jump to headingcallback: (err: ErrnoException | null,resolvedPath: string,) => void
Return Type Jump to heading
void
Jump to headingnative(path: PathLike,options: BufferEncodingOption,callback: (err: ErrnoException | null,resolvedPath: Buffer,) => void,): void
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingoptions: BufferEncodingOption
Jump to headingcallback: (err: ErrnoException | null,resolvedPath: Buffer,) => void
Return Type Jump to heading
void
Jump to headingnative(path: PathLike,options: EncodingOption,callback: (err: ErrnoException | null,resolvedPath: string | Buffer,) => void,): void
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingoptions: EncodingOption
Jump to headingcallback: (err: ErrnoException | null,resolvedPath: string | Buffer,) => void
Return Type Jump to heading
void
Jump to headingnative(path: PathLike,callback: (err: ErrnoException | null,resolvedPath: string,) => void,): void
Parameters Jump to heading
Jump to headingpath: PathLike
Jump to headingcallback: (err: ErrnoException | null,resolvedPath: string,) => void
Return Type Jump to heading
void