rmtree#
- barecat._api.Barecat.rmtree(item)[source]#
Remove (delete) a directory and all its contents recursively from the archive.
Technically, file contents are not erased from the shard file at this point, only the corresponding rows in the index database are removed.
- Parameters:
item (Union[BarecatDirInfo, str]) – Either a BarecatDirInfo object, or a path to a directory within the archive.
- Raises:
FileNotFoundBarecatError – If a directory with this path does not exist in the archive.