mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Can't get root folder in Rar #152
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 @et721 on GitHub (Dec 15, 2016).
HI!
I'm trying to check if a Rar archive contains a folder, and if it does, I need to get that entry first, when i'm looping through the entries, it starts with the first file in the sub directory, I'm not very proficient in programming
using (RarArchive archive = RarArchive.Open(vManager.getActiveMod())) { foreach (RarArchiveEntry entry in archive.Entries.Where(entry => entry.IsDirectory)) { MessageBox.Show(entry.ToString()); /*entry.WriteToDirectory("D:\\temp", new ExtractionOptions() { ExtractFullPath = true, Overwrite = true }); */ } }