2
Vote

FileInfoEventArgs returning bad information

description

In the following code the FileInfoEventArgs returns "[no name]" for e.FileInfo.Filename. What gives?
 
List<string> extractedFileList = new List<string>();
SevenZipExtractor.SetLibraryPath(string.Format(@"{0}\7-Zip\7z.dll", Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)));
using (var tmp = new SevenZipExtractor(fileName))
{
tmp.FileExtractionFinished += (object sender, FileInfoEventArgs e)=>{
    extractedFileList.Add(e.FileInfo.FileName);
};
 
tmp.ExtractArchive(@"e:\Xml");
}

comments