有没有办法实现一个库能够支持解压zip,7z,rar的?
By
admin
at 2017-12-10 • 0人收藏 • 1268人看过
io.print(fullpath); var tpath = io.splitpath(fullpath); select(string.lower(tpath.ext) { case ".zip"{ var ok,err = zlib.unzip.extract(fullpath,temp); io.print(ok,err); } case ".7z"{ sevenZip.cmd.extract(fullpath,temp); } case ".rar"{ var ok,err = fsys.unrar.extract(fullpath,temp); io.print(ok,err); } }
分析文件名,调用
登录后方可回帖