Exemple #1
0
        private static void GetFilesFromList(List <dynamic> listOfFiles)
        {
            Run();

            var amountOfFiles = listOfFiles.Count;

            Progress.SetMaximum(amountOfFiles);
            ConsoleLog.WriteLog($"{amountOfFiles} files selected to downloading");

            for (int x = 0; (x < listOfFiles.Count && IsRunnig()); x++)
            {
                var file      = listOfFiles[x];
                var localPath = GetLocalPath(file.Name, file.Environment, file.Folder);
                DownloadFile(file.Url, file.Name, localPath);
            }

            Finish();
        }