Skip to main content
Ctrl+K

barecat

  • Getting Started
  • Working with Image Datasets
  • How to Automatically Encode and Decode Files
  • How to Convert Archives
  • How to Merge Archives
    • How to Use with PyTorch DataLoader
    • How to Mount with FUSE
    • How to Set Up Shell Completions
    • How to Verify and Repair Archives
    • Command Line Interface
    • Python API Reference
    • File Format Specification
    • Architecture
    • Integrity Checking
    • Comparison with Other Formats
    • Performance Characteristics
  • GitHub
  • Getting Started
  • Working with Image Datasets
  • How to Automatically Encode and Decode Files
  • How to Convert Archives
  • How to Merge Archives
  • How to Use with PyTorch DataLoader
  • How to Mount with FUSE
  • How to Set Up Shell Completions
  • How to Verify and Repair Archives
  • Command Line Interface
  • Python API Reference
  • File Format Specification
  • Architecture
  • Integrity Checking
  • Comparison with Other Formats
  • Performance Characteristics
  • GitHub

Section Navigation

  • rmdir

rmdir#

barecat._api.Barecat.rmdir(item)[source]#

Remove (delete) an empty directory from the archive.

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.

  • DirectoryNotEmptyBarecatError – If the directory is not empty.

© Copyright 2026, István Sárándi.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.