Function downloadOnFs

  • Downloads from url and save on fs, optimal for big files because uses streams. If the file directory does not exist, it will be recursively created. Once the download is complete, IncomingMessage is returned

    Parameters

    Returns Promise<IncomingMessage>