You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also I found any rar file use WriteToFile is same (throw System.NotImplementedException:“The method or operation is not implemented.”but the file is really uncompress success)
The reason I didn't upload a RAR attachment earlier is that for any RAR file, attempting to execute WriteToDirectory or WriteToFile on any of the entries throws a NotImplementedException, even though the files can be extracted normally. If you really need me to upload one, I can upload just any file(Since GitHub does not support uploading files in RAR format, I have placed the RAR test file inside a ZIP file for uploading. test.zip
).
Additionally, I've encountered another issue. For any 7z file that contains a large number of files, a full extraction of the 7z file might take around 10 seconds, but if I use a foreach loop to execute WriteToFile for each entry, the total time taken is more than tenfold.
ExtractionOptions extractionOptions = new ExtractionOptions();
extractionOptions.ExtractFullPath = true;
extractionOptions.Overwrite = true;
extractionOptions.PreserveAttributes = true;
extractionOptions.PreserveFileTime = true;
RarArchive archive = ArchiveFactory.Open(@“D:\test.rar”);
foreach (IArchiveEntry oneEntry in archive.Entries)
{
if(oneEntry.Key == "1.jpg")
oneEntry.WriteToDirectory(@"D:\result", extractionOptions);
}
throw System.NotImplementedException:“The method or operation is not implemented.”
but the file is really uncompress success.I think is BUG
The text was updated successfully, but these errors were encountered: