Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • Asynchronously copies src to dest. By default, dest is overwritten if it already exists. No arguments other than a possible exception are given to the callback function. Node.js makes no guarantees about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, Node.js will attempt to remove the destination.

    Parameters

    Returns void

  • Asynchronously copies src to dest. By default, dest is overwritten if it already exists. No arguments other than a possible exception are given to the callback function. Node.js makes no guarantees about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, Node.js will attempt to remove the destination.

    Parameters

    • src: PathLike

      A path to the source file.

    • dest: PathLike

      A path to the destination file.

    • flags: number

      An integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists.

    • callback: NoParamCallback

    Returns void

Index

Functions

Functions

__promisify__

  • Asynchronously copies src to dest. By default, dest is overwritten if it already exists. No arguments other than a possible exception are given to the callback function. Node.js makes no guarantees about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, Node.js will attempt to remove the destination.

    Parameters

    • src: PathLike

      A path to the source file.

    • dst: PathLike
    • Optional flags: number

      An optional integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists.

    Returns Promise<void>

Generated using TypeDoc