File tree Expand file tree Collapse file tree 4 files changed +3
-18
lines changed Expand file tree Collapse file tree 4 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ python script.py
10
10
## Screenshot
11
11
After running the script we will find the extracted file in the current directory.
12
12
13
- ![ demo] ( https://user-images.githubusercontent.com/56690856/99091832-6add4280-25f6 -11eb-999d-86d8b5794d57 .png )
13
+ ![ demo] ( https://user-images.githubusercontent.com/56690856/99141235-5b4e1000-266f -11eb-8798-a0315a0f834c .png )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,12 +4,11 @@ def main():
4
4
# Enter the name of zip file
5
5
zipFile = input ("Enter zip file:" )
6
6
# Enter the path of the file to be extracted
7
- extractFile = input ("Enter path of the file:" )
8
7
print ("Extracted file in ZIP to current directory" )
9
8
# create a ZipFile object in READ mode and name it as zipObj
10
9
with ZipFile (zipFile , 'r' ) as zipObj :
11
- # extract() method is used to extract any file by specifying its path in the zip file
12
- zipObj .extract ( extractFile );
10
+ # extractall the files from a zip file
11
+ zipObj .extractall ( );
13
12
14
13
if __name__ == '__main__' :
15
14
main ()
You can’t perform that action at this time.
0 commit comments