Jump to content
  • Advertisement
Sign in to follow this  
NickGravelyn

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

This topic is 4059 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!