HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-38.pyc
U

��e��@s�dZddlmZddlZddlmZmZddlmZddl	m
Z
e
rpddlZejdkrdddl	m
Z
nddlm
Z
Gd	d
�d
e�ZdS)z	Base API.�)�annotationsN)�ABC�abstractmethod)�Path)�
TYPE_CHECKING)��)�Literalc
@s~eZdZdZdMddddddddd	�d
d�Zddd
�dd�Zddd�dd�Zeedd�dd���Z	eedd�dd���Z
eedd�dd���Zeedd�dd���Zeedd�dd���Z
eedd�dd���Zeedd�d d!���Zeedd�d"d#���Zeedd�d$d%���Zeedd�d&d'���Zeedd�d(d)���Zeedd�d*d+���Zeedd�d,d-���Zeedd�d.d/���Zed0d�d1d2��Zed0d�d3d4��Zed0d�d5d6��Zed0d�d7d8��Zed0d�d9d:��Zed0d�d;d<��Zed0d�d=d>��Zed0d�d?d@��Zed0d�dAdB��Zed0d�dCdD��Z ed0d�dEdF��Z!ed0d�dGdH��Z"ed0d�dIdJ��Z#ed0d�dKdL��Z$dS)N�PlatformDirsABCz-Abstract base class for platform directories.NFTz
str | Nonezstr | None | Literal[False]�bool�None)�appname�	appauthor�version�roaming�	multipath�opinion�
ensure_exists�returncCs.||_||_||_||_||_||_||_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
rrrrrr)�selfr
rrrrrr�r�@/tmp/pip-unpacked-wheel-uzdrexel/pip/_vendor/platformdirs/api.py�__init__szPlatformDirsABC.__init__�str)�basercGsXt|dd��}|jr4|�|j�|jr4|�|j�tjj|df|��}|�|�|S)N�r)�listr
�appendr�os�path�join�_optionally_create_directory)rr�paramsrrrr�_append_app_name_and_versionGs
z,PlatformDirsABC._append_app_name_and_version)rrcCs|jrt|�jddd�dS)NT)�parents�exist_ok)rr�mkdir)rrrrrr!Qsz,PlatformDirsABC._optionally_create_directory)rcCsdS)z(:return: data directory tied to the userNr�rrrr�
user_data_dirUszPlatformDirsABC.user_data_dircCsdS)z':return: data directory shared by usersNrr'rrr�
site_data_dirZszPlatformDirsABC.site_data_dircCsdS)z*:return: config directory tied to the userNrr'rrr�user_config_dir_szPlatformDirsABC.user_config_dircCsdS)z-:return: config directory shared by the usersNrr'rrr�site_config_dirdszPlatformDirsABC.site_config_dircCsdS)z):return: cache directory tied to the userNrr'rrr�user_cache_diriszPlatformDirsABC.user_cache_dircCsdS)z(:return: cache directory shared by usersNrr'rrr�site_cache_dirnszPlatformDirsABC.site_cache_dircCsdS)z):return: state directory tied to the userNrr'rrr�user_state_dirsszPlatformDirsABC.user_state_dircCsdS)z':return: log directory tied to the userNrr'rrr�user_log_dirxszPlatformDirsABC.user_log_dircCsdS)z-:return: documents directory tied to the userNrr'rrr�user_documents_dir}sz"PlatformDirsABC.user_documents_dircCsdS)z-:return: downloads directory tied to the userNrr'rrr�user_downloads_dir�sz"PlatformDirsABC.user_downloads_dircCsdS)z,:return: pictures directory tied to the userNrr'rrr�user_pictures_dir�sz!PlatformDirsABC.user_pictures_dircCsdS)z*:return: videos directory tied to the userNrr'rrr�user_videos_dir�szPlatformDirsABC.user_videos_dircCsdS)z):return: music directory tied to the userNrr'rrr�user_music_dir�szPlatformDirsABC.user_music_dircCsdS)z+:return: runtime directory tied to the userNrr'rrr�user_runtime_dir�sz PlatformDirsABC.user_runtime_dirrcCs
t|j�S)z#:return: data path tied to the user)rr(r'rrr�user_data_path�szPlatformDirsABC.user_data_pathcCs
t|j�S)z":return: data path shared by users)rr)r'rrr�site_data_path�szPlatformDirsABC.site_data_pathcCs
t|j�S)z%:return: config path tied to the user)rr*r'rrr�user_config_path�sz PlatformDirsABC.user_config_pathcCs
t|j�S)z(:return: config path shared by the users)rr+r'rrr�site_config_path�sz PlatformDirsABC.site_config_pathcCs
t|j�S)z$:return: cache path tied to the user)rr,r'rrr�user_cache_path�szPlatformDirsABC.user_cache_pathcCs
t|j�S)z#:return: cache path shared by users)rr-r'rrr�site_cache_path�szPlatformDirsABC.site_cache_pathcCs
t|j�S)z$:return: state path tied to the user)rr.r'rrr�user_state_path�szPlatformDirsABC.user_state_pathcCs
t|j�S)z":return: log path tied to the user)rr/r'rrr�
user_log_path�szPlatformDirsABC.user_log_pathcCs
t|j�S)z(:return: documents path tied to the user)rr0r'rrr�user_documents_path�sz#PlatformDirsABC.user_documents_pathcCs
t|j�S)z(:return: downloads path tied to the user)rr1r'rrr�user_downloads_path�sz#PlatformDirsABC.user_downloads_pathcCs
t|j�S)z':return: pictures path tied to the user)rr2r'rrr�user_pictures_path�sz"PlatformDirsABC.user_pictures_pathcCs
t|j�S)z%:return: videos path tied to the user)rr3r'rrr�user_videos_path�sz PlatformDirsABC.user_videos_pathcCs
t|j�S)z$:return: music path tied to the user)rr4r'rrr�user_music_path�szPlatformDirsABC.user_music_pathcCs
t|j�S)z&:return: runtime path tied to the user)rr5r'rrr�user_runtime_path�sz!PlatformDirsABC.user_runtime_path)NNNFFTF)%�__name__�
__module__�__qualname__�__doc__rr#r!�propertyrr(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrrrrr
s��2
r
)rG�
__future__rr�abcrr�pathlibr�typingr�sys�version_infor	Zpip._vendor.typing_extensionsr
rrrr�<module>s