温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/fs/realpath/native
点击访问原文链接

function native | Node.js fs module | Bun

function native | Node.js fs module | BunBuildDocsReferenceGuidesBlogDiscord/node:fs/realpath/nativeFnative

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:fs/realpath/nativeFnative

function

fs.realpath.nativefunction native(path: PathLike,options: EncodingOption,callback: (err: null | ErrnoException, 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.

function native(path: PathLike,options: BufferEncodingOption,callback: (err: null | ErrnoException, resolvedPath: NonSharedBuffer) => 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.

function native(path: PathLike,options: EncodingOption,callback: (err: null | ErrnoException, resolvedPath: string | NonSharedBuffer) => 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.

function native(path: PathLike,callback: (err: null | ErrnoException, 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.

Referenced typestype PathLike = string | Buffer | URL

Valid types for path values in "fs".

type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | nulltype BufferEncodingOption = 'buffer' | { encoding: 'buffer' }

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

function native | Node.js fs module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:fs.realpath.native | Bun