OpenMS
Loading...
Searching...
No Matches
Network Class Reference

Utility class for network operations (HTTP downloads) More...

#include <OpenMS/SYSTEM/Network.h>

Static Public Member Functions

static void downloadFile (const std::string &url, const std::string &download_folder)
 Download file from given URL into a download folder. Returns when done.
 

Detailed Description

Utility class for network operations (HTTP downloads)

Member Function Documentation

◆ downloadFile()

static void downloadFile ( const std::string &  url,
const std::string &  download_folder 
)
static

Download file from given URL into a download folder. Returns when done.

If a file with same filename already exists, creates a new file with '.number' appended to the basename.

Exceptions
IOExceptionif download failed.