rename_file#
- barecat.Index.rename_file(old, new, allow_overwrite=False)[source]#
Rename a file in the index.
- Parameters:
- Raises:
FileNotFoundBarecatError – If the file is not found.
FileExistsBarecatError – If the new path already exists and allow_overwrite is False.
IsADirectoryBarecatError – If the new path is a directory.