private List <FileInfo> UnpackNarFilesToTemp(string narFileName) { var tempPath = VtIO.CreateTemporaryDirectory(); if (tempPath.Exists) { var zip = new FastZip(); zip.ExtractZip(narFileName, tempPath.FullName, null); var files = tempPath.GetFiles("*.jp*").ToList(); return(files); } return(null); }
//////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////// // // fce z puvodniho FrmMain, kdyz zde nebyl bgworker // //////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////// private ArrayList GetAllSubFiles(string RootPath, ArrayList ExtList, ref List <string> ErrorPaths) { ArrayList Result = new ArrayList(); // projedu vsechny zatrzene extenze for (int i = 0; i < ExtList.Count; i++) { string SearchPattern = "*." + ExtList[i]; var Files = VtIO.GetAllFilesEx(RootPath, SearchPattern, ref ErrorPaths); foreach (string FileName in Files) { Result.Add(FileName); } } return(Result); }