private void GenerateFileList()
{
    //ClientFolderPath = Utils.getWorkingDirectory() + File.separator + GlobalVar.itemsServers[GlobalVar.CurrentServer] + File.separator;
    ClientFolderPath = Utils.getWorkingDirectory() + File.separator + GlobalVar.itemsServers[GlobalVar.CurrentServer] + File.separator + ".minecraft" + File.separator;
    
		File dir = new File(ClientFolderPath);
		if (!dir.exists()) {
			dir.mkdirs();
		}

		if (GlobalVar.debug)
			System.out.println("Client root folder: " + ClientFolderPath);
		try {
			path = new URL(
					(GlobalVar.DownloadClientRootURL + GlobalVar.itemsServers[GlobalVar.CurrentServer]) + '/');
			if (GlobalVar.debug)
				System.out.println("Download root: " + path.toString());
		} catch (MalformedURLException ex) {
			Logger.getLogger(Updater.class.getName()).log(Level.SEVERE, null, ex);
		}
		mdsummcheker mdchk = new mdsummcheker();

    for(int i=0;i<GlobalVar.ArchivesList.length;i++)
    {
        if(!mdchk.CheckMD5Matches(GlobalVar.ArchivesList[i]))
        {
            try 
            {
                FileList[FileCount]=GlobalVar.ArchivesList[i];
                URLList[FileCount] = new URL(path,FileList[FileCount]);
                FileCount++;
                Utils.LogPrintConsole("Обнаружено обновление файла: "+GlobalVar.ArchivesList[i]);
            } catch (MalformedURLException ex) 
            {
                //System.out.println("Исключение на итерации "+ FileCount + "\nFile name = "+FileList[FileCount]);
                Logger.getLogger(Updater.class.getName()).log(Level.SEVERE, null, ex);
            } catch (Exception e)
            {
                System.out.println("Error on generate links "+e);
                Utils.LogPrintConsole("Ошибка проверки обновления файла: "+GlobalVar.ArchivesList[i]);
            }
          
        }
    }
}