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

o�d.��|�ddlmZddlZddlZddlmZmZddlmZej	dkrddl
mZGd�de��ZdS)	�)�annotationsN)�ABC�abstractmethod)�Path)��)�Literalc�p�eZdZdZ						d&d'd�Zd(d�Zeed)d�����Zeed)d�����Z	eed)d�����Z
eed)d�����Zeed)d�����Zeed)d�����Z
eed)d�����Zeed)d�����Zeed)d�����Zed*d���Zed*d���Zed*d���Zed*d ���Zed*d!���Zed*d"���Zed*d#���Zed*d$���Zed*d%���ZdS)+�PlatformDirsABCz7
    Abstract base class for platform directories.
    NFT�appname�
str | None�	appauthor�str | None | Literal[False]�version�roaming�bool�	multipath�opinionc�b�||_||_	||_	||_	||_	||_dS)a%
        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`.
        N)rrrrrr)�selfrrrrrrs       �a/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/platformdirs/api.py�__init__zPlatformDirsABC.__init__sN��&���"���	����	����	�
#���	�������base�str�returnc���t|dd���}|jr;|�|j��|jr|�|j��t	jj|dg|�R�S)N�r)�listr�appendr�os�path�join)rr�paramss   r�_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_version<so���d�1�2�2�h�����<�	,��M�M�$�,�'�'�'��|�
,��
�
�d�l�+�+�+��w�|�D��G�-�f�-�-�-�-rc��dS)z(:return: data directory tied to the userN��rs r�
user_data_dirzPlatformDirsABC.user_data_dirD����rc��dS)z':return: data directory shared by usersNr'r(s r�
site_data_dirzPlatformDirsABC.site_data_dirIr*rc��dS)z*:return: config directory tied to the userNr'r(s r�user_config_dirzPlatformDirsABC.user_config_dirNr*rc��dS)z-:return: config directory shared by the usersNr'r(s r�site_config_dirzPlatformDirsABC.site_config_dirSr*rc��dS)z):return: cache directory tied to the userNr'r(s r�user_cache_dirzPlatformDirsABC.user_cache_dirXr*rc��dS)z):return: state directory tied to the userNr'r(s r�user_state_dirzPlatformDirsABC.user_state_dir]r*rc��dS)z':return: log directory tied to the userNr'r(s r�user_log_dirzPlatformDirsABC.user_log_dirbr*rc��dS)z-:return: documents directory tied to the userNr'r(s r�user_documents_dirz"PlatformDirsABC.user_documents_dirgr*rc��dS)z+:return: runtime directory tied to the userNr'r(s r�user_runtime_dirz PlatformDirsABC.user_runtime_dirlr*rrc�*�t|j��S)z#:return: data path tied to the user)rr)r(s r�user_data_pathzPlatformDirsABC.user_data_pathq����D�&�'�'�'rc�*�t|j��S)z":return: data path shared by users)rr,r(s r�site_data_pathzPlatformDirsABC.site_data_pathvr=rc�*�t|j��S)z%:return: config path tied to the user)rr.r(s r�user_config_pathz PlatformDirsABC.user_config_path{����D�(�)�)�)rc�*�t|j��S)z(:return: config path shared by the users)rr0r(s r�site_config_pathz PlatformDirsABC.site_config_path�rBrc�*�t|j��S)z$:return: cache path tied to the user)rr2r(s r�user_cache_pathzPlatformDirsABC.user_cache_path�����D�'�(�(�(rc�*�t|j��S)z$:return: state path tied to the user)rr4r(s r�user_state_pathzPlatformDirsABC.user_state_path�rGrc�*�t|j��S)z":return: log path tied to the user)rr6r(s r�
user_log_pathzPlatformDirsABC.user_log_path�s���D�%�&�&�&rc�*�t|j��S)z(:return: documents path tied to the user)rr8r(s r�user_documents_pathz#PlatformDirsABC.user_documents_path�s���D�+�,�,�,rc�*�t|j��S)z&:return: runtime path tied to the user)rr:r(s r�user_runtime_pathz!PlatformDirsABC.user_runtime_path�s���D�)�*�*�*r)NNNFFT)rr
rrrr
rrrrrr)rrrr)rr)rr)�__name__�
__module__�__qualname__�__doc__rr%�propertyrr)r,r.r0r2r4r6r8r:r<r?rArDrFrIrKrMrOr'rrrrs���������#�15�"����)�)�)�)�)�V.�.�.�.���7�7�7��^��X�7���6�6�6��^��X�6���9�9�9��^��X�9���<�<�<��^��X�<���8�8�8��^��X�8���8�8�8��^��X�8���6�6�6��^��X�6���<�<�<��^��X�<���:�:�:��^��X�:��(�(�(��X�(��(�(�(��X�(��*�*�*��X�*��*�*�*��X�*��)�)�)��X�)��)�)�)��X�)��'�'�'��X�'��-�-�-��X�-��+�+�+��X�+�+�+rr)
�
__future__rr!�sys�abcrr�pathlibr�version_info�typingr	rr'rr�<module>r[s���"�"�"�"�"�"�	�	�	�	�
�
�
�
�#�#�#�#�#�#�#�#���������v���������P+�P+�P+�P+�P+�c�P+�P+�P+�P+�P+r