remove_empty_dir#
- barecat.Index.remove_empty_dir(item)[source]#
Remove an empty directory from the index.
- Parameters:
item (Union[barecat.core.types.BarecatDirInfo, str]) – Path of the directory or the directory info object.
- Raises:
DirectoryNotEmptyBarecatError – If the directory is not empty.
FileNotFoundBarecatError – If the directory is not found.