https://github.com/pascalvault/lazarus_packer
PV_Packer - simple pure Pascal library to pack files to various archives (ZIP, RAR, TAR...)
https://github.com/pascalvault/lazarus_packer
archive compression deflate gzip lha lzh pack rar tar zip
Last synced: 7 months ago
JSON representation
PV_Packer - simple pure Pascal library to pack files to various archives (ZIP, RAR, TAR...)
- Host: GitHub
- URL: https://github.com/pascalvault/lazarus_packer
- Owner: PascalVault
- License: mit
- Created: 2023-10-04T12:57:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T13:04:15.000Z (almost 2 years ago)
- Last Synced: 2025-01-17T18:25:07.703Z (9 months ago)
- Topics: archive, compression, deflate, gzip, lha, lzh, pack, rar, tar, zip
- Language: Pascal
- Homepage:
- Size: 42 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lazarus_Packer
PV_Packer - simple pure Pascal library to pack files to various archives (ZIP, RAR, TAR...)See also:
https://github.com/PascalVault/Lazarus_Unpacker## Supported formats ##
- .ZIP
- .TAR
- .GZ
- .GZA
- .BH
- .RAR (method "store")
- .ARJ (method "store")
- .ACE (method "store")
- .LZH .LHA (method "store")
- .ARC (method "store")
- .ZOO (can be opened with IZarc) (method "store")## Unsupported, yet ##
- encryption## Usage ##
uses PV_Packer;
...
var Zip: TPacker;
begin
Zip := TPacker.Create('out.tar', 'tar');
Zip.SetComment('Created by PV_Packer'); //not all formats support comments yetZip.AddFile('input file.txt', 'name in the archive.txt'); //or
Zip.AddFile('input file.txt');Zip.Free;
## Usage - GZIP ##
uses PV_Packer;
...
var Zip: TPacker;
begin
Zip := TPacker.Create('out.gz', 'gz');
Zip.SetComment('Created by PV_Packer');Zip.AddFile('input file.txt', 'name in the archive.txt');
Zip.AddFile('input file.txt'); //this returns False because there can be only 1 file in .GZIPZip.Free;