Readlink
[<Interface>]
type Readlink =
abstract member Invoke (path: PathLike, callback: Callback4) : unit
abstract member Invoke (path: PathLike, options: EncodingOption, callback: Callback3) : unit
abstract member Invoke (path: PathLike, options: BufferEncodingOption, callback: Callback2) : unit
abstract member Invoke (path: PathLike, options: EncodingOption, callback: Callback) : unit
abstract member __promisify__ (path: PathLike, options: BufferEncodingOption) : Promise<NonSharedBuffer>
abstract member __promisify__ (path: PathLike, ?options: EncodingOption) : Promise<string>| Assembly | Xantham.Fable.Node |
Declared inside
Callback | |
Callback2 | |
Callback3 | |
Callback4 |
Methods
abstract member Invoke (path: PathLike, callback: Callback4) : unit
abstract member Invoke (path: PathLike, callback: Callback4) : unitReads the contents of the symbolic link referred to by path. The callback gets two arguments (err, linkString).
See the POSIX readlink(2) documentation for more details.
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 link path passed to the callback. If the encoding is set to 'buffer', the link path returned will be passed as a Buffer object. Asynchronous readlink(2) - read value of a symbolic link.
| 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. |
path | A path to a file. If a URL is provided, it must use the file: protocol. |
abstract member Invoke (path: PathLike, options: EncodingOption, callback: Callback3) : unit
abstract member Invoke (path: PathLike, options: EncodingOption, callback: Callback3) : unitReads the contents of the symbolic link referred to by path. The callback gets two arguments (err, linkString).
See the POSIX readlink(2) documentation for more details.
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 link path passed to the callback. If the encoding is set to 'buffer', the link path returned will be passed as a Buffer object. Asynchronous readlink(2) - read value of a symbolic link.
| 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. |
path | A path to a file. If a URL is provided, it must use the file: protocol. |
abstract member Invoke (path: PathLike, options: BufferEncodingOption, callback: Callback2) : unit
abstract member Invoke (path: PathLike, options: BufferEncodingOption, callback: Callback2) : unitReads the contents of the symbolic link referred to by path. The callback gets two arguments (err, linkString).
See the POSIX readlink(2) documentation for more details.
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 link path passed to the callback. If the encoding is set to 'buffer', the link path returned will be passed as a Buffer object. Asynchronous readlink(2) - read value of a symbolic link.
| 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. |
path | A path to a file. If a URL is provided, it must use the file: protocol. |
abstract member Invoke (path: PathLike, options: EncodingOption, callback: Callback) : unit
abstract member Invoke (path: PathLike, options: EncodingOption, callback: Callback) : unitReads the contents of the symbolic link referred to by path. The callback gets two arguments (err, linkString).
See the POSIX readlink(2) documentation for more details.
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 link path passed to the callback. If the encoding is set to 'buffer', the link path returned will be passed as a Buffer object. Asynchronous readlink(2) - read value of a symbolic link.
@since v0.1.31
abstract member __promisify__ (path: PathLike, options: BufferEncodingOption) : Promise<NonSharedBuffer>
abstract member __promisify__ (path: PathLike, options: BufferEncodingOption) : Promise<NonSharedBuffer>Asynchronous readlink(2) - read value of a symbolic link.
| 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. |
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 __promisify__ (path: PathLike, ?options: EncodingOption) : Promise<string>
abstract member __promisify__ (path: PathLike, ?options: EncodingOption) : Promise<string>Asynchronous readlink(2) - read value of a symbolic link.
| 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. |
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. |