Sign in to follow this  

[.net] Troubles With ZipFile Class And System.IO.Compression

This topic is 3844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using the classes found at http://blogs.msdn.com/dotnetinterop/archive/2006/04/05/.NET-System.IO.Compression-and-zip-files.aspx but I'm having troubles with the resulting zip file. When I add a file, for some reason the zip file records every directory from root on up and puts those into the zip. As an example, let's assume I zip up the file "C:/something/somethingelse/1/2/3/picture.png". The resulting zip file will look like this: "something/somethingelse/1/2/3/picture.png". Any idea why it automatically puts all those folders in there? I just want picture.png inside the zip, not the whole directory hierarchy. Any suggestions are welcome.

Share this post


Link to post
Share on other sites

This topic is 3844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this