From 6ef878b4cb806420268d066ed7a440a6315f0f44 Mon Sep 17 00:00:00 2001 From: Steven Crawford Date: Thu, 12 Dec 2024 13:29:09 -0600 Subject: [PATCH] final clean up --- split_zip_into_smaller_chunks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/split_zip_into_smaller_chunks.py b/split_zip_into_smaller_chunks.py index cf0c810..6e2bae6 100755 --- a/split_zip_into_smaller_chunks.py +++ b/split_zip_into_smaller_chunks.py @@ -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