minizip是依托于zlib软件包的一个zip格式解、压缩的软件包。minizip是zlib官方认可的一个第三方库。
教程:https://blog.csdn.net/whahu1989/article/details/80344373
- zip.c:负责将多文件压缩为zip压缩包相关
- unzip.c:负责zip压缩包解压相关
负责解压zip压缩包,命令如下:
Usage : miniunz [-e] [-x] [-v] [-l] [-o] [-p password] file.zip [file_to_extr.] [-d extractdir]
-e Extract without pathname (junk paths)
-x Extract with pathname
-v list files
-l list files
-d directory to extract into
-o overwrite files without prompting
-p extract crypted file using password
负责将多文件压缩为zip压缩包,命令如下:
Usage : minizip [-o] [-a] [-0 to -9] [-p password] file.zip [files_to_add]
-o Overwrite existing file.zip
-a Append to existing file.zip
-0 Store only
-1 Compress faster
-9 Compress better
RT-Thread online package ->
miscellaneous package ->
[*] minizip: zip manipulation library --->
如果只是列出zip压缩包的文件,该操作不会占用多少内存。但是如果要进行解、压缩操作,需要占用很大的内存,至少300KB左右,建议使用配备外置SRAM的开发板进行尝试。
Meco Man @ RT-Thread Community