Skip to content

Link

[<Interface>]
type Link =
    abstract member Invoke (existingPath: PathLike, newPath: PathLike, callback: NoParamCallback) : unit
    abstract member __promisify__ (existingPath: PathLike, newPath: PathLike) : Promise<unit>
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (existingPath: PathLike, newPath: PathLike, callback: NoParamCallback) : unit

Creates a new link from the existingPath to the newPath. See the POSIX link(2) documentation for more detail. No arguments other than a possible exception are given to the completion callback.

@since v0.1.31

abstract member __promisify__ (existingPath: PathLike, newPath: PathLike) : Promise<unit>

Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.

Parameter
existingPathA path to a file. If a URL is provided, it must use the file: protocol.
newPathA path to a file. If a URL is provided, it must use the file: protocol.