diff --git a/Unzip file/Readme.md b/Unzip file/Readme.md new file mode 100644 index 0000000000..d04ac626c3 --- /dev/null +++ b/Unzip file/Readme.md @@ -0,0 +1,35 @@ +# Unzip File + +[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com) + +## Unzip File Functionalities : 🚀 + +- Upload the zip file which is to be unzipped +- Then the script will return all the unzipped files into the Unzip files folder + +## Unzip File Instructions: 👨🏻‍💻 + +### Step 1: + + Open Termnial 💻 + +### Step 2: + + Locate to the directory where python file is located 📂 + +### Step 3: + + Run the command: python script.py/python3 script.py 🧐 + +### Step 4: + + Sit back and Relax. Let the Script do the Job. ☕ + +### Requirements + + - zipfile + +## Author + + Amit Kumar Mishra + diff --git a/Unzip file/script.py b/Unzip file/script.py new file mode 100644 index 0000000000..1aef457ee1 --- /dev/null +++ b/Unzip file/script.py @@ -0,0 +1,7 @@ +import zipfile + +target = input(r"Enter file to be unzipped: ") +handle = zipfile.ZipFile(target) +handle.extractall("./Unzip file/Unzip files") +handle.close() +