Link
[<Interface>]
type Link =
abstract member Invoke (existingPath: PathLike, newPath: PathLike, callback: NoParamCallback) : unit
abstract member __promisify__ (existingPath: PathLike, newPath: PathLike) : Promise<unit>| Assembly | Xantham.Fable.Node |
Methods
abstract member Invoke (existingPath: PathLike, newPath: PathLike, callback: NoParamCallback) : unit
abstract member Invoke (existingPath: PathLike, newPath: PathLike, callback: NoParamCallback) : unitCreates 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>
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 | |
|---|---|
existingPath | A path to a file. If a URL is provided, it must use the file: protocol. |
newPath | A path to a file. If a URL is provided, it must use the file: protocol. |