rename_dir#

barecat.Index.rename_dir(old, new, allow_overwrite=False)[source]#

Rename a directory in the index.

Parameters:
  • old (Union[barecat.core.types.BarecatDirInfo, str]) – Path of the directory or the directory info object.

  • new (str) – New path.

  • allow_overwrite (bool)

Raises: