IndorCAD 8.0. Стабильная версия

import rarfile

def extract_rar(file_path, extract_path): try: with rarfile.RarFile(file_path) as rar: rar.extractall(path=extract_path) print(f"Successfully extracted to {extract_path}") except Exception as e: print(f"An error occurred: {e}")

def list_rar_contents(file_path): try: with rarfile.RarFile(file_path) as rar: print(rar.namelist()) except Exception as e: print(f"An error occurred: {e}")