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