AlkantarClanX12

Your IP : 18.117.145.67


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/platformdirs/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/platformdirs/__pycache__/api.cpython-311.pyc

�

�܋f����dZddlmZddlZddlmZmZddlmZddl	m
Z
e
rddlZejdkrddl	m
Z
nddlm
Z
Gd	�d
e��ZdS)z	Base API.�)�annotationsN)�ABC�abstractmethod)�Path)�
TYPE_CHECKING)��)�Literalc�:�eZdZdZ							d8d9d�Zd:d�Zd;d�Zeed<d�����Z	eed<d�����Z
eed<d�����Zeed<d�����Zeed<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
rrrrrr)�selfr
rrrrrrs        �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���}|jr;|�|j��|jr|�|j��t	jj|dg|�R�}|�|��|S)N�r)�listr
�appendr�os�path�join�_optionally_create_directory)rr�paramsr%s    r�_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_versionGs����d�1�2�2�h�����<�	,��M�M�$�,�'�'�'��|�
,��
�
�d�l�+�+�+��w�|�D��G�-�f�-�-�-���)�)�$�/�/�/��rr%c�`�|jr&t|���dd���dSdS)NT)�parents�exist_ok)rr�mkdir)rr%s  rr'z,PlatformDirsABC._optionally_create_directoryQs<����	:���J�J���T�D��9�9�9�9�9�	:�	:rc��dS)z(:return: data directory tied to the userN��rs r�
user_data_dirzPlatformDirsABC.user_data_dirU����rc��dS)z':return: data directory shared by usersNr/r0s r�
site_data_dirzPlatformDirsABC.site_data_dirZr2rc��dS)z*:return: config directory tied to the userNr/r0s r�user_config_dirzPlatformDirsABC.user_config_dir_r2rc��dS)z-:return: config directory shared by the usersNr/r0s r�site_config_dirzPlatformDirsABC.site_config_dirdr2rc��dS)z):return: cache directory tied to the userNr/r0s r�user_cache_dirzPlatformDirsABC.user_cache_dirir2rc��dS)z(:return: cache directory shared by usersNr/r0s r�site_cache_dirzPlatformDirsABC.site_cache_dirnr2rc��dS)z):return: state directory tied to the userNr/r0s r�user_state_dirzPlatformDirsABC.user_state_dirsr2rc��dS)z':return: log directory tied to the userNr/r0s r�user_log_dirzPlatformDirsABC.user_log_dirxr2rc��dS)z-:return: documents directory tied to the userNr/r0s r�user_documents_dirz"PlatformDirsABC.user_documents_dir}r2rc��dS)z-:return: downloads directory tied to the userNr/r0s r�user_downloads_dirz"PlatformDirsABC.user_downloads_dir�r2rc��dS)z,:return: pictures directory tied to the userNr/r0s r�user_pictures_dirz!PlatformDirsABC.user_pictures_dir�r2rc��dS)z*:return: videos directory tied to the userNr/r0s r�user_videos_dirzPlatformDirsABC.user_videos_dir�r2rc��dS)z):return: music directory tied to the userNr/r0s r�user_music_dirzPlatformDirsABC.user_music_dir�r2rc��dS)z+:return: desktop directory tied to the userNr/r0s r�user_desktop_dirz PlatformDirsABC.user_desktop_dir�r2rc��dS)z+:return: runtime directory tied to the userNr/r0s r�user_runtime_dirz PlatformDirsABC.user_runtime_dir�r2rc��dS)z*:return: runtime directory shared by usersNr/r0s r�site_runtime_dirz PlatformDirsABC.site_runtime_dir�r2rrc�*�t|j��S)z#:return: data path tied to the user)rr1r0s r�user_data_pathzPlatformDirsABC.user_data_path�����D�&�'�'�'rc�*�t|j��S)z":return: data path shared by users)rr4r0s r�site_data_pathzPlatformDirsABC.site_data_path�rSrc�*�t|j��S)z%:return: config path tied to the user)rr6r0s r�user_config_pathz PlatformDirsABC.user_config_path�����D�(�)�)�)rc�*�t|j��S)z(:return: config path shared by the users)rr8r0s r�site_config_pathz PlatformDirsABC.site_config_path�rXrc�*�t|j��S)z$:return: cache path tied to the user)rr:r0s r�user_cache_pathzPlatformDirsABC.user_cache_path�����D�'�(�(�(rc�*�t|j��S)z#:return: cache path shared by users)rr<r0s r�site_cache_pathzPlatformDirsABC.site_cache_path�r]rc�*�t|j��S)z$:return: state path tied to the user)rr>r0s r�user_state_pathzPlatformDirsABC.user_state_path�r]rc�*�t|j��S)z":return: log path tied to the user)rr@r0s r�
user_log_pathzPlatformDirsABC.user_log_path�s���D�%�&�&�&rc�*�t|j��S)z(:return: documents path tied to the user)rrBr0s r�user_documents_pathz#PlatformDirsABC.user_documents_path�����D�+�,�,�,rc�*�t|j��S)z(:return: downloads path tied to the user)rrDr0s r�user_downloads_pathz#PlatformDirsABC.user_downloads_path�rfrc�*�t|j��S)z':return: pictures path tied to the user)rrFr0s r�user_pictures_pathz"PlatformDirsABC.user_pictures_path�s���D�*�+�+�+rc�*�t|j��S)z%:return: videos path tied to the user)rrHr0s r�user_videos_pathz PlatformDirsABC.user_videos_path�rXrc�*�t|j��S)z$:return: music path tied to the user)rrJr0s r�user_music_pathzPlatformDirsABC.user_music_path�r]rc�*�t|j��S)z&:return: desktop path tied to the user)rrLr0s r�user_desktop_pathz!PlatformDirsABC.user_desktop_path�����D�)�*�*�*rc�*�t|j��S)z&:return: runtime path tied to the user)rrNr0s r�user_runtime_pathz!PlatformDirsABC.user_runtime_path�rqrc�*�t|j��S)z%:return: runtime path shared by users)rrPr0s r�site_runtime_pathz!PlatformDirsABC.site_runtime_path�rqr)NNNFFTF)r
rrrrrrrrrrrrrrr)rrrr)r%rrr)rr)rr))�__name__�
__module__�__qualname__�__doc__rr)r'�propertyrr1r4r6r8r:r<r>r@rBrDrFrHrJrLrNrPrRrUrWrZr\r_rarcrerhrjrlrnrprsrur/rrrrs������7�7�#�15�"����#�0�0�0�0�0�d����:�:�:�:���7�7�7��^��X�7���6�6�6��^��X�6���9�9�9��^��X�9���<�<�<��^��X�<���8�8�8��^��X�8���7�7�7��^��X�7���8�8�8��^��X�8���6�6�6��^��X�6���<�<�<��^��X�<���<�<�<��^��X�<���;�;�;��^��X�;���9�9�9��^��X�9���8�8�8��^��X�8���:�:�:��^��X�:���:�:�:��^��X�:���9�9�9��^��X�9��(�(�(��X�(��(�(�(��X�(��*�*�*��X�*��*�*�*��X�*��)�)�)��X�)��)�)�)��X�)��)�)�)��X�)��'�'�'��X�'��-�-�-��X�-��-�-�-��X�-��,�,�,��X�,��*�*�*��X�*��)�)�)��X�)��+�+�+��X�+��+�+�+��X�+��+�+�+��X�+�+�+rr)ry�
__future__rr$�abcrr�pathlibr�typingr�sys�version_infor
�typing_extensionsrr/rr�<module>r�s�����"�"�"�"�"�"�	�	�	�	�#�#�#�#�#�#�#�#������� � � � � � ��.��J�J�J�
��6�!�!�"�"�"�"�"�"�"�-�-�-�-�-�-�a+�a+�a+�a+�a+�c�a+�a+�a+�a+�a+r