rename_file#

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

Rename a file in the index.

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

  • new (str) – New path.

  • allow_overwrite (bool)

Raises: