开发者

SharpZip escape filename

开发者 https://www.devze.com 2022-12-23 17:58 出处:网络
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 u开发者_JS百科p the image paths).

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 u开发者_JS百科p 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消