Hacked By AnonymousFox
�
�܋f� � � � d Z ddlmZ ddlZddlmZmZ ddlmZ ddl m
Z
e
rddlZej dk rddl m
Z
nddlm
Z
G d � d
e� � ZdS )z Base API.� )�annotationsN)�ABC�abstractmethod)�Path)�
TYPE_CHECKING)� � )�Literalc �: � e Zd ZdZ d8d9d�Zd:d�Zd;d�Zeed<d�� � � � Z eed<d�� � � � Z
eed<d�� � � � Zeed<d�� � � � Zeed<d�� � � � Z
eed<d�� � � � Zeed<d�� � � � Zeed<d�� � � � Zeed<d�� � � � Zeed<d �� � � � Zeed<d!�� � � � Zeed<d"�� � � � Zeed<d#�� � � � Zeed<d$�� � � � Zeed<d%�� � � � Zeed<d&�� � � � Zed=d(�� � Zed=d)�� � Zed=d*�� � Zed=d+�� � Zed=d,�� � Zed=d-�� � Zed=d.�� � Zed=d/�� � Z ed=d0�� � Z!ed=d1�� � Z"ed=d2�� � Z#ed=d3�� � Z$ed=d4�� � Z%ed=d5�� � Z&ed=d6�� � Z'ed=d7�� � Z(dS )>�PlatformDirsABCz-Abstract base class for platform directories.NFT�appname�
str | None� appauthor�str | None | Literal[False]�version�roaming�bool� multipath�opinion�
ensure_exists�return�Nonec �p � || _ || _ || _ || _ || _ || _ || _ dS )aX
Create a new platform directory.
:param appname: See `appname`.
:param appauthor: See `appauthor`.
:param version: See `version`.
:param roaming: See `roaming`.
:param multipath: See `multipath`.
:param opinion: See `opinion`.
:param ensure_exists: See `ensure_exists`.
N)r
r r r r r r )�selfr
r r r r r r s �a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/platformdirs/api.py�__init__zPlatformDirsABC.__init__ s\ � �* ���"��� � ��� � ��� �
#��� � ���*��� � � �base�strc � � t |dd � � � }| j r;|� | j � � | j r|� | j � � t j j |d g|�R � }| � |� � |S )N� r )�listr
�appendr �os�path�join�_optionally_create_directory)r r �paramsr% s r �_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_versionG s� � ��d�1�2�2�h�����<� ,��M�M�$�,�'�'�'��|�
,��
�
�d�l�+�+�+��w�|�D��G�-�f�-�-�-���)�)�$�/�/�/��r r% c �` � | j r&t |� � � dd�� � d S d S )NT)�parents�exist_ok)r r �mkdir)r r% s r r'