merge_from_other_barecat#
- barecat.Index.merge_from_other_barecat(source_index_path, ignore_duplicates=False, prefix=None, update_treestats=True)[source]#
Adds the files and directories from another Barecat index to this one.
Typically used during symlink-based merging. That is, the shards in the source Barecat are assumed to be simply be placed next to each other, instead of being merged with the existing shards in this index. For merging the shards themselves, more complex logic is needed, and that method is in the Barecat class.
- Parameters:
- Raises:
DatabaseError – If an error occurs during the operation.
ValueError – If file/directory path conflicts exist between source and target.