Installation • Compatibility and OS support • Build Status • Contributing • License
zip7
package provides methods for working with 7z archives (p7zip
wrapper).
重命名: rn (Rename) command
- 参考: https://documentation.help/7-Zip-18.0/rename.htm
rn <archive_name> <src_file_1> <dest_file_1> [ <src_file_2> <dest_file_2> ... ]
7z rn a.7z old.txt new.txt 2.txt folder\2new.txt
可以在追加文件后, 通过重命名的方式将文件追加到指定位置
Make sure you have a working Go 1.17+ workspace (instructions), then:
go get github.com/gocnpan/zip7
If you want to update zip7
to latest stable release, do:
go get -u github.com/gocnpan/zip7
Version | 1.x |
---|---|
p7zip 9.x |
Partial |
p7zip 15.x |
Full |
p7zip 16.x |
Full |
OS | Support |
---|---|
Linux | ✔️ |
Mac OS X | ✔️ |
FreeBSD | ✔️ |
Windows | ✔️ |
Running this project on Windows pre-requisite 7zip and 7zip standalone console version from 7zip
Add Windows %PATH%
to C:\Program Files\7-Zip
or where the program is.
Branch | Status |
---|---|
master |
|
develop |
Before contributing to this project please read our Contributing Guidelines.