HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-37.pyc
B

L��g��@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-hv55ucu3/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 usersNr)rrrr�
site_data_dirZszPlatformDirsABC.site_data_dircCsdS)z*:return: config directory tied to the userNr)rrrr�user_config_dir_szPlatformDirsABC.user_config_dircCsdS)z-:return: config directory shared by the usersNr)rrrr�site_config_dirdszPlatformDirsABC.site_config_dircCsdS)z):return: cache directory tied to the userNr)rrrr�user_cache_diriszPlatformDirsABC.user_cache_dircCsdS)z(:return: cache directory shared by usersNr)rrrr�site_cache_dirnszPlatformDirsABC.site_cache_dircCsdS)z):return: state directory tied to the userNr)rrrr�user_state_dirsszPlatformDirsABC.user_state_dircCsdS)z':return: log directory tied to the userNr)rrrr�user_log_dirxszPlatformDirsABC.user_log_dircCsdS)z-:return: documents directory tied to the userNr)rrrr�user_documents_dir}sz"PlatformDirsABC.user_documents_dircCsdS)z-:return: downloads directory tied to the userNr)rrrr�user_downloads_dir�sz"PlatformDirsABC.user_downloads_dircCsdS)z,:return: pictures directory tied to the userNr)rrrr�user_pictures_dir�sz!PlatformDirsABC.user_pictures_dircCsdS)z*:return: videos directory tied to the userNr)rrrr�user_videos_dir�szPlatformDirsABC.user_videos_dircCsdS)z):return: music directory tied to the userNr)rrrr�user_music_dir�szPlatformDirsABC.user_music_dircCsdS)z+:return: runtime directory tied to the userNr)rrrr�user_runtime_dir�sz PlatformDirsABC.user_runtime_dirrcCs
t|j�S)z#:return: data path tied to the user)rr')rrrr�user_data_path�szPlatformDirsABC.user_data_pathcCs
t|j�S)z":return: data path shared by users)rr()rrrr�site_data_path�szPlatformDirsABC.site_data_pathcCs
t|j�S)z%:return: config path tied to the user)rr))rrrr�user_config_path�sz PlatformDirsABC.user_config_pathcCs
t|j�S)z(:return: config path shared by the users)rr*)rrrr�site_config_path�sz PlatformDirsABC.site_config_pathcCs
t|j�S)z$:return: cache path tied to the user)rr+)rrrr�user_cache_path�szPlatformDirsABC.user_cache_pathcCs
t|j�S)z#:return: cache path shared by users)rr,)rrrr�site_cache_path�szPlatformDirsABC.site_cache_pathcCs
t|j�S)z$:return: state path tied to the user)rr-)rrrr�user_state_path�szPlatformDirsABC.user_state_pathcCs
t|j�S)z":return: log path tied to the user)rr.)rrrr�
user_log_path�szPlatformDirsABC.user_log_pathcCs
t|j�S)z(:return: documents path tied to the user)rr/)rrrr�user_documents_path�sz#PlatformDirsABC.user_documents_pathcCs
t|j�S)z(:return: downloads path tied to the user)rr0)rrrr�user_downloads_path�sz#PlatformDirsABC.user_downloads_pathcCs
t|j�S)z':return: pictures path tied to the user)rr1)rrrr�user_pictures_path�sz"PlatformDirsABC.user_pictures_pathcCs
t|j�S)z%:return: videos path tied to the user)rr2)rrrr�user_videos_path�sz PlatformDirsABC.user_videos_pathcCs
t|j�S)z$:return: music path tied to the user)rr3)rrrr�user_music_path�szPlatformDirsABC.user_music_pathcCs
t|j�S)z&:return: runtime path tied to the user)rr4)rrrr�user_runtime_path�sz!PlatformDirsABC.user_runtime_path)NNNFFTF)%�__name__�
__module__�__qualname__�__doc__rr#r!�propertyrr'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrrrrr
sh*
r
)rF�
__future__rr�abcrr�pathlibr�typingr�sys�version_infor	Zpip._vendor.typing_extensionsr
rrrr�<module>s