Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Zip file and directory compression via LibraryLink and Rust
Contributed by: Arnoud Buzing
ZipLink is a state-of-the-art Wolfram Language paclet that bridges the Wolfram ecosystem with the high-performance Rust zip component through LibraryLink. Engineered for speed and reliability, it provides an intuitive interface for managing archives with support for industry-standard compression methods like Deflate, Bzip2, and the ultra-fast ZStandard. Whether you are bundling large datasets for distribution or performing surgical extractions from complex directory structures, ZipLink delivers a seamless, native-level experience for archive management in Mathematica and Wolfram Desktop.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["ArnoudBuzing/ZipLink"]
To load the code after installation, evaluate this code:
Needs["ArnoudBuzing`ZipLink`"]
Pick a directory to compress:
| In[1]:= |
List the files in this directory:
| In[2]:= |
| Out[2]= | ![]() |
Create a zip file from the directory and its contents:
| In[3]:= |
| Out[3]= |
List the contents of the zip file with compression details:
| In[4]:= |
| Out[4]= | ![]() |
Unzip the zip file in a temporary directory:
| In[5]:= |
| Out[5]= |
List the extracted files:
| In[6]:= |
| Out[6]= | ![]() |
Extract a specific file only:
| In[7]:= |
| Out[7]= |
Wolfram Language Version 14.3