im trying to give a progress bar to this code with zipfile module:
object = zipfile.ZipFile(name, 'w', zipfile.ZIP_LZMA)
object.write(f'{self.dir}\\{new_archive}')
os.remove(f"{self.dir}\\{new_archive}")
How can I do this? ps: this function runs in other threads
I tried with TQDM but without success.
edit: How can I measure zipfile module wait time while zipping?