private static void DownloadFile(string url, string fileName, string localPath) { try { using (WebClient web = new WebClient()) { var finalPath = $"{url}/{fileName}"; ConsoleLog.WriteLog($"Dowloading {finalPath} into local folder {localPath}"); web.DownloadFile(finalPath, localPath); Progress.Increment(); } } catch { ConsoleLog.WriteLog($"An error has ocurred while trying to download the file {fileName}", true); } }