merge_from_other_barecat#
- barecat._api.Barecat.merge_from_other_barecat(source_path, ignore_duplicates=False, prefix='', pattern=None, filter_rules=None)[source]#
Merge the contents of another Barecat archive into this one.
- Parameters:
source_path (str) – Path to the other Barecat archive.
ignore_duplicates (bool) – If True, do not raise an error when a file with the same path already exists in the archive.
prefix (str) – Path prefix to prepend to all paths (default: ‘’, no prefix).
pattern (str) – Glob pattern to filter files (uses optimized iterglob_infos).
filter_rules (list) – Rsync-style include/exclude rules as list of (‘+’/’-’, pattern) tuples.
- Raises:
ValueError – If the shard size limit is set and a file in the source archive is larger than the shard size limit.