updates
This commit is contained in:
@@ -33,7 +33,7 @@ def can_float(str):
|
|||||||
|
|
||||||
def get_max_size():
|
def get_max_size():
|
||||||
while True:
|
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):
|
if can_float(mx_group_size):
|
||||||
return float(mx_group_size)
|
return float(mx_group_size)
|
||||||
else:
|
else:
|
||||||
@@ -83,7 +83,7 @@ def split_zip(input_zip_path, output_folder, max_group_size):
|
|||||||
# Update the size of the current group
|
# Update the size of the current group
|
||||||
group_size += len(file_content.getvalue())
|
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
|
# Example usage
|
||||||
# input_zip_path = 'path/to/your/large.zip'
|
# input_zip_path = 'path/to/your/large.zip'
|
||||||
|
|||||||
Reference in New Issue
Block a user