split_large_zip: Split Large Zip File into Smaller Parts

View source: R/ifcb_helper_functions.R

split_large_zipR Documentation

Split Large Zip File into Smaller Parts

Description

This helper function takes an existing zip file, extracts its contents, and splits it into smaller zip files without splitting subfolders.

Usage

split_large_zip(zip_file, max_size = 500, quiet = FALSE)

Arguments

zip_file

The path to the large zip file.

max_size

The maximum size (in MB) for each split zip file. Default is 500 MB.

quiet

Logical. If TRUE, suppresses messages about the progress and completion of the zip process. Default is FALSE.

Value

This function does not return any value; it creates multiple smaller zip files.

Examples

## Not run: 
# Split an existing zip file into parts of up to 500 MB
split_large_zip("large_file.zip", max_size = 500)

## End(Not run)

iRfcb documentation built on April 16, 2025, 1:09 a.m.