Function link

  • 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.

    Parameters

    Returns void

    Since

    v0.1.31

    See

  • 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.

    Parameters

    Returns Promise<void>

    Since

    v0.1.31

    See

Methods

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

    Parameters

    • existingPath: PathLike

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

    • newPath: PathLike

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

    Returns Promise<void>

Generated using TypeDoc