mkdir#

barecat.Barecat.mkdir(path, mode=493, exist_ok=False)[source]#

Create a directory in the archive.

Parent directories are automatically created if they don’t exist (like mkdir -p).

Parameters:
  • path (str) – Path of the directory to create.

  • mode (int) – Permission mode for the directory (default: 0o755).

  • exist_ok (bool) – If True, do not raise an error if the directory already exists.

Raises: