Function downloadFile

  • Downloads a file from the specified URL and saves it to the target file.

    Parameters

    • url: string

      The URL of the file to download.

    • targetFile: string

      The file path where the downloaded file will be saved.

    Returns Promise<void | Error>

    A promise that resolves when the file is successfully downloaded and saved, or rejects with an error if there was an issue.

Generated using TypeDoc