Advertisement
A_GUES

Python run zip

Jul 12th, 2023
1,301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import zipfile
  2.  
  3. def extract_zip_file(file_path, destination_path):
  4.     with zipfile.ZipFile(file_path, 'r') as zip_ref:
  5.         zip_ref.extractall(destination_path)
  6.  
  7. # Use the function
  8. extract_zip_file('path_to_your_zip_file.zip', 'path_to_extract_to')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement