Two Python scripts for creating zip archives from folders and extracting zip archives to a destination.
- Compress a folder (or set of files) into a
.ziparchive - Preserves the internal folder structure
- Progress output during archiving
- Extract any
.zipfile to a specified destination folder - Handles nested folder structures correctly
- Reports extracted file count on completion
| Category | Technology |
|---|---|
| Language | Python 3 |
| Compression | zipfile (built-in) |
| File I/O | os, pathlib (built-in) |
# Archive a folder
python Archive.py
# Extract a zip file
python Extract.pyBoth scripts prompt you interactively for input/output paths.
- Python's
zipfilemodule for compression/decompression - Recursive directory traversal with
os.walk() - Building small, focused utility scripts
- File path handling across platforms
Made with ❤️ as part of a learning journey