Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • Asynchronous symlink(2) - Create a new symbolic link to an existing file.

    Parameters

    • target: PathLike

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

    • path: PathLike

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

    • type: Type | undefined | null

      May be set to 'dir', 'file', or 'junction' (default is 'file') and is only available on Windows (ignored on other platforms). When using 'junction', the target argument will automatically be normalized to an absolute path.

    • callback: function

    Returns void

  • Asynchronous symlink(2) - Create a new symbolic link to an existing file.

    Parameters

    • target: PathLike

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

    • path: PathLike

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

    • callback: function

    Returns void

Index

Type aliases

Functions

Type aliases

Type

Type: "dir" | "file" | "junction"

Functions

__promisify__

  • __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>
  • Asynchronous symlink(2) - Create a new symbolic link to an existing file.

    Parameters

    • target: PathLike

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

    • path: PathLike

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

    • Optional type: string | null

      May be set to 'dir', 'file', or 'junction' (default is 'file') and is only available on Windows (ignored on other platforms). When using 'junction', the target argument will automatically be normalized to an absolute path.

    Returns Promise<void>

Generated using TypeDoc