Rayen.zip <FREE>
# Usage zip_file_path = 'path/to/rayen.zip' destination_path = 'path/to/extract' unzip_file(zip_file_path, destination_path)
import zipfile import os
def unzip_file(zip_file_path, destination_path): try: with zipfile.ZipFile(zip_file_path, 'r') as zip_ref: zip_ref.extractall(destination_path) print(f"Files have been unzipped to {destination_path}") except FileNotFoundError: print(f"The file {zip_file_path} was not found.") except Exception as e: print(f"An error occurred: {e}") rayen.zip