'How to extract particular folder using Ionic Zip ZipFile

I have a case, where I need to extract Zip file with C# Ionic.zip library. Zip file contains multiple folders and I want to extract and copy a every folder exept the root folder to specific destination.

Zip file named as Example.zip and directory structure will be like

  • Root Directory\Sub Directory 1\file a, file b
  • Root Directory\Sub Directory 2\file c, file d

And I want to copy every Sub Directory in a Temp folder so it would look like

  • Temp\Sub Directory 1\file a, file b
  • Temp\Sub Directory 2\file c, file d

But I cant do it without taking Root Directory with it

  • Temp\Root Directory\Sub Directory...

Do you have any idea how I can do it ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source