mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-05 21:23:57 +00:00
decompress rar file loss #429
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 @sherleyshen on GitHub (Dec 23, 2020).
hi, i'm trying to decompress some rar file, and since i only have the authentification of one StorageFolder which can receive the decompressed file. i have tried following methods:


`
using(var entryStream = reader.OpenEntryStream())
{
StorageFile newFile = await folder.CreateFileAsync(pathToRar);
Stream fileStream = await (newFile).OpenStreamForWriteAsync();
entryStream.CopyTo(fileStream,(int)entryStream.Length);
entryStream.Dispose();
}
andStorageFile newFile = await folder.CreateFileAsync(pathToRar);
Stream fileStream = await (newFile).OpenStreamForWriteAsync();
reader.WriteEntryTo(fileStream);
`
turns out that after decompressing some rarEntries with small size are Empty now.