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