private void onCompletedFile(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e) { string fileName = e.Name; SourceFileInfo file = new SourceFileInfo(System.IO.Path.Combine((_fileActionInfo as SourceTargetFilterFileInfo).TargetPath, fileName.Replace('/', System.IO.Path.DirectorySeparatorChar))); files.Add(file); _isExecuted = true; int pos = fileName.LastIndexOf('/'); string path = ""; if (pos > 0 && pathDepth(fileName) <= 1) { path = fileName.Substring(0, pos + 1); if (!directories.ContainsKey(path)) { directories.Add(path, new SourceFileInfo(System.IO.Path.Combine((_fileActionInfo as SourceTargetFilterFileInfo).TargetPath, path.Replace('/', System.IO.Path.DirectorySeparatorChar)))); } } }
private void UnzipCompleted(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e) { //this.labStatus.Text = String.Format("正在解压:{0},已完成。", e.Name); Console.WriteLine(String.Format("正在解压:{0},已完成。", e.Name)); }
private void onCompletedFile(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e) { }
private void UnzipCompleted(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e) { UpdateStatusCallback?.Invoke(String.Format("正在解压:{0},已完成。", e.Name), -1); }