mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Error: "Index was outside the bounds of the array." #158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fahmiandhika on GitHub (Mar 21, 2017).
Hi Guys,
I Have an error "Index was outside the bounds of the array." when to try extract file.
below the code
` using (Stream stream = System.IO.File.OpenRead(pathForZip))
using (var reader = ReaderFactory.Open(stream))
{
while (reader.MoveToNextEntry())
{
if (!reader.Entry.IsDirectory)
{
Console.WriteLine(reader.Entry.Key);
reader.WriteEntryToDirectory(pathForExtracting, new ExtractionOptions()
{
ExtractFullPath = true,
Overwrite = true
});
}
Please advice,
Thanks