Function copyFile

  • Copies the source file into the target.

    Parameters

    • path: string

      Source path.

    • newPath: string

      Target path.

    Returns Promise<void>