在 flex 中提取 zip 文件 [英] Extract zip file in flex

查看:39
本文介绍了在 flex 中提取 zip 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以提取 zip 文件并在输出文件夹中保持相同的文件夹结构.我能够提取 zip 文件及其内部文件,但无法从 zip 文件中提取文件夹,因此无法维护文件夹结构也一样.

Is there any method to extract zip files and maintain the same folder structure in the output folder.I am able to extract the zip file and its inner files but not able to extract folder from a zip file and thus fail to maintain folder structure also.

推荐答案

是.

有一个 AS3 组件可以让你从 zip 文件中读取和写入数据,并且演示还显示可以查看文件夹结构.

There is an AS3 component that allows you to read and write data from zip files, and the demo also shows that it is possible to see the folder structure.

http://www.nochump.com/blog/?p=15

我自己没有使用过这个组件,但如果我假设你正在制作一个 AIR 应用程序是正确的,那么这个组件可能会自动生成文件夹,否则你可以使用文件系统 api 自己创建正确的文件夹.

I have not used this component myself, but if I am correct in assuming that you are making an AIR application then this component may automatically generate folders, otherwise you can use the file system api to create the correct folders yourself.

祝你好运!

这篇关于在 flex 中提取 zip 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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