final clean up

This commit is contained in:
2024-12-12 13:29:09 -06:00
parent 8f4c2e6d50
commit 6ef878b4cb

View File

@@ -62,15 +62,15 @@ def split_zip(input_zip_path, output_folder, max_group_size):
group_number = 1
i = 1
printProgressBar(0, l, prefix = 'Progress:', suffix = 'Complete', length = 100)
printProgressBar(0, l, prefix = 'Progress:', suffix = 'Complete', length = 50)
for member in members:
i = i + 1
printProgressBar(i, l, prefix = 'Progress:', suffix = 'Complete', length = 100)
printProgressBar(i, l, prefix = 'Progress:', suffix = 'Complete', length = 50)
# Read the file content from the zip archive
with BytesIO(source_zip.read(member)) as file_content:
# Check if adding this file would exceed the maximum group size
if (group_size + len(file_content.getvalue())) > max_group_size:
print(f'\r{file_name}-group_{group_number}.zip done. ', end="")
print(f'\nDone: {file_name}-group_{group_number}.zip ', end="\r")
group_number += 1
print(f'\nNext: {file_name}-group_{group_number}.zip')
group_size = 0