mkdir#
- barecat._api.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:
- Raises:
FileExistsBarecatError – If a file or directory with this path already exists, unless exist_ok is True and it’s a directory.
NotADirectoryBarecatError – If the path or a parent exists as a file.