Skip to main contentModule split
Source - SplitConfig
- Configuration for the split command.
- SplitMode
- Split mode: how to divide the input.
- SuffixType
- Suffix type for output filenames.
- generate_suffix
- Generate the suffix string for a given chunk index.
- max_chunks
- Compute the maximum number of chunks supported for a given suffix configuration.
- output_paths
- Get the list of output file paths that would be generated for given config and chunk count.
- parse_size
- Parse a SIZE string with optional suffix.
Supports: K=1024, M=1024^2, G=1024^3, T=1024^4, P=1024^5, E=1024^6
Also: KB=1000, MB=1000^2, GB=1000^3, etc.
Also: b=512, KiB=1024, MiB=1024^2, etc.
- split_file
- Main entry point: split a file according to the given configuration.
input_path is the path to the input file, or “-” for stdin.