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| Assembly | Xantham.Fable.Node |
Methods
abstract member Invoke (path: PathLike, options: BufferEncodingOption) : NonSharedBuffer
abstract member Invoke (path: PathLike, options: BufferEncodingOption) : NonSharedBufferReturns 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 | |
|---|---|
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. |
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. |
abstract member Invoke (path: PathLike, ?options: EncodingOption) : string
abstract member Invoke (path: PathLike, ?options: EncodingOption) : stringReturns 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) : NonSharedBufferabstract member native (path: PathLike, ?options: EncodingOption) : string