如何在不破坏文件结构的情况下压缩文件 [英] How to Zip a file with out disturbing its structure

查看:105
本文介绍了如何在不破坏文件结构的情况下压缩文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,使用sharpziplib,iam可以压缩包含该文件的文件夹.但是当iam具有以下样式的文件夹结构时,

Folder1包含

3个txt文件

一个子文件夹1

subfolder1再次包含

5个文本文件

当iam尝试使用Sharpziplib将其压缩时

它正在压缩所有8个文件,并将其命名为folder1.zip.它不维护子文件夹结构.

如何解决此问题


在Advance中致谢

Hi Using sharpziplib iam able to zip a folder which contains files in that .But when iam having the folder structure in the below style

Folder1 contains

3 txt files

one subfolder1

subfolder1 again contains

5 text files

when iam trying to zip this using sharpziplib

it is zipping all the 8 files and giving as folder1.zip. it does not maintain the subfolder structure .

How can resolve this issue


Thanks in Advance

推荐答案

以下是带有您问题答案的帖子:

http://community.sharpdevelop.net/forums/t/12057.aspx [ ^ ]
Here is a posting with the answer to your question:

http://community.sharpdevelop.net/forums/t/12057.aspx[^]


这篇关于如何在不破坏文件结构的情况下压缩文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆