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