Skip to content

Commit c1870d1

Browse files
Merge pull request avinashkranjan#775 from Amit366/Amit2
Unzip file
2 parents 6938240 + 6903f51 commit c1870d1

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

Unzip file/Readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# <b>Unzip File</b>
2+
3+
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
4+
5+
## Unzip File Functionalities : 🚀
6+
7+
- Upload the zip file which is to be unzipped
8+
- Then the script will return all the unzipped files into the Unzip files folder
9+
10+
## Unzip File Instructions: 👨🏻‍💻
11+
12+
### Step 1:
13+
14+
Open Termnial 💻
15+
16+
### Step 2:
17+
18+
Locate to the directory where python file is located 📂
19+
20+
### Step 3:
21+
22+
Run the command: python script.py/python3 script.py 🧐
23+
24+
### Step 4:
25+
26+
Sit back and Relax. Let the Script do the Job. ☕
27+
28+
### Requirements
29+
30+
- zipfile
31+
32+
## Author
33+
34+
Amit Kumar Mishra
35+

Unzip file/script.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import zipfile
2+
3+
target = input(r"Enter file to be unzipped: ")
4+
handle = zipfile.ZipFile(target)
5+
handle.extractall("./Unzip file/Unzip files")
6+
handle.close()
7+

0 commit comments

Comments
 (0)