This commit is contained in:
2024-12-12 13:03:22 -06:00
parent 6961f59253
commit 4b037fb18c

View File

@@ -33,7 +33,7 @@ def can_float(str):
def get_max_size():
while True:
mx_group_size = input("Enter the maximum (in GB) zipped file size: ")
mx_group_size = input("Enter the maximum (in GB) zipped file size (2 is default): ").strip() or "2"
if can_float(mx_group_size):
return float(mx_group_size)
else:
@@ -83,7 +83,7 @@ def split_zip(input_zip_path, output_folder, max_group_size):
# Update the size of the current group
group_size += len(file_content.getvalue())
print(f'Successfully split {input_zip_path} into {group_number} groups.')
print(f'Successfully split {input_zip_path} into {group_number} groups.', end="\r")
# Example usage
# input_zip_path = 'path/to/your/large.zip'