Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7519821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:57:56+00:00 2026-05-30T01:57:56+00:00

I want to pack to zip some folder using SharpZipLib. Example stucture directory1: directory2:

  • 0

I want to pack to zip some folder using SharpZipLib. Example stucture

directory1:
    directory2:
         file1
    file2
    directory3:
        directory4:

When I pack it using c# code from here:

http://wiki.sharpdevelop.net/SharpZipLib-Zip-Samples.ashx#Create_a_Zip_with_full_control_over_contents_0

I get zip archives without directory3 and directory4.

My question is how can I pack to get archives with directory3 and directory4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:57:58+00:00Added an answer on May 30, 2026 at 1:57 am
     FastZip fastZip = new FastZip();
    
     fastZip.CreateEmptyDirectories = true;
     // Include all files by recursing through the directory structure
     bool recurse = true; 
     // Dont filter any files at all 
     string filter = null;
     fastZip.CreateZip("fileName.zip", @"C:\SourceDirectory", recurse, filter);
    

    one caveat is that it can’t handle UTF-8 file names.

    Here is the link to the documentation wiki:

    https://web.archive.org/web/20200221081153/https://github.com/icsharpcode/SharpZipLib/wiki/FastZip

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to pack the project into a zip-file and have the build date
I want to parse the html table using html agility pack. I want to
I have some big code line which I want to pack into define for
I want to use the pack() function in Perl to encode some data. Then
For example in my HTML I have img tags. I want to pack them
I am using struct.pack method which takes variable number of arguments. I want to
I want to send a struct in C# to C++ using sockets. For example,
I'm using Html Agility Pack to fetch a webpage. I want to collect all
from Tkinter import * app = Tk() text_field = Entry(app) text_field.pack() app.mainloop() I want
want to know why String behaves like value type while using ==. String s1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.