I have a PyQt5 application that does zip/unzip operations under the hood and a general progress bar that indicates the status.
For example: if I download a file, I can track the received_bytes & total_size and calculate the current percentage.
The same can be done for the zip since it has a for loop and I can calculate the amount of processed files.
with zipfile.ZipFile(f'{path}', 'w') as z:
for file in files:
z.write(file_path, compress_type=zipfile.ZIP_STORED)
I would like to know is it possible for me somehow to track the progress of the unpack operation?
shutil.unpack_archive(path_from, path_to)