Skip to content

RealpathSync

[<Interface>]
type RealpathSync =
    abstract member Invoke (path: PathLike, options: BufferEncodingOption) : NonSharedBuffer
    abstract member Invoke (path: PathLike, ?options: EncodingOption) : string
    abstract member native (path: PathLike, options: BufferEncodingOption) : NonSharedBuffer
    abstract member native (path: PathLike, ?options: EncodingOption) : string
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (path: PathLike, options: BufferEncodingOption) : NonSharedBuffer

Returns the resolved pathname.

For detailed information, see the documentation of the asynchronous version of this API: realpath. Synchronous realpath(3) - return the canonicalized absolute pathname.

Parameter
pathA path to a file. If a URL is provided, it must use the file: protocol.
optionsThe encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.
pathA path to a file. If a URL is provided, it must use the file: protocol.
optionsThe encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, 'utf8' is used.
abstract member Invoke (path: PathLike, ?options: EncodingOption) : string

Returns the resolved pathname.

For detailed information, see the documentation of the asynchronous version of this API: realpath. Synchronous realpath(3) - return the canonicalized absolute pathname.

@since v0.1.31

abstract member native (path: PathLike, options: BufferEncodingOption) : NonSharedBuffer
abstract member native (path: PathLike, ?options: EncodingOption) : string