Function copyfile

  • Copies the source file into the target.

    If COPYFILE_EXCL is specified the operation will fail if the target exists.

    If COPYFILE_FICLONE is specified it will attempt to create a reflink. If copy-on-write is not supported, a fallback copy mechanism is used.

    If COPYFILE_FICLONE_FORCE is specified it will attempt to create a reflink. If copy-on-write is not supported, an error is thrown.

    Parameters

    • path: string

      Source path.

    • newPath: string

      Target path.

    • Optional flags: number

      Specify the mode for copying the file.

    Returns Promise<void>

Generated using TypeDoc