Python script to create a zip file
This Python script takes an input folder and creates a zip file and stores in the output folder. As a use case, this python script does the following:
- Reads all the files within the input folder.
- The input folder comprises of both files and folders
- Create a zip file within output folder
- Unzip the zip file in the output folder
python create_zip.py
The entire project follows the below folder structure:
.
├── create_zip.py # Main Python script to create zip file
├── input/ # Input folder comprising files and folder
├── output/ # Output folder where zip file will be saved
└── README.md
Follow me for more updates here: