0

I'm using SharpZipLib to create a zip file with an html page and images. If the html file has a / in the name, it creates a folder (which messes up the image paths).

Example: If the html file should be named Web/Design.html the zip file will contain a Web folder with a Design.html file in it.

I've tried escaping / by replacing / with // or / but nothing has worked so far.

Alpha Codemonkey
  • 3,242
  • 21
  • 26

1 Answers1

1

Filenames can't generally have slashes in them. I suggest you replace / with _ or something similar.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194