public void backup_Files(string backupFolder) { var files_BackupFolder = backupFolder.pathCombine("Files"); files_BackupFolder.createDir(); var files = WikiApi.allImages(); "there are {0} files to download".info(files.size()); Status_ProgressBar.maximum(files.size()); Status_ProgressBar.value(0); foreach (var file in files) { if (CancelBackup) { "In backup_Files, CancelBackup was set, so aborting backup".error(); break; } var web = new Web(); if (WikiApi.BasicAuth.valid()) { web.Headers_Request.add("Authorization", "Basic " + WikiApi.BasicAuth); } web.downloadBinaryFile(file, files_BackupFolder); Status_ProgressBar.increment(1); } }