add_dir#
- barecat.Index.add_dir(dinfo, exist_ok=False)[source]#
Add a directory to the index.
- Parameters:
dinfo (barecat.core.types.BarecatDirInfo) – Directory info object.
exist_ok – Whether to ignore if the directory already exists.
- Raises:
FileExistsBarecatError – If the directory already exists and exist_ok is False.