You can download this code by clicking the button below.
This code is now available for download.
This function extracts all files from a zip file into a specified folder.
Technology Stack : zipfile, os
Code Type : File operation
Code Difficulty : Intermediate
def zipfile_extract(source_zip, destination_folder):
import zipfile
import os
with zipfile.ZipFile(source_zip, 'r') as zip_ref:
zip_ref.extractall(destination_folder)
return True