PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/platformdirs/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/platformdirs/__pycache__/api.cpython-312.pyc

�

���g=$��v�dZddlmZddlZddlmZmZddlmZddl	m
Z
e
rddlmZddl	m
Z
Gd	�d
e�Zy)z	Base API.�)�annotationsN)�ABC�abstractmethod)�Path)�
TYPE_CHECKING)�Iterator)�Literalc�~�eZdZdZ							d/															d0d�Zd1d�Zd2d�Zd3d�Zee	d4d���Z
ee	d4d���Zee	d4d	���Zee	d4d
���Z
ee	d4d���Zee	d4d���Zee	d4d
���Zee	d4d���Zee	d4d���Zee	d4d���Zee	d4d���Zee	d4d���Zee	d4d���Zee	d4d���Zee	d4d���Zee	d4d���Zed5d��Zed5d��Zed5d��Zed5d��Zed5d��Zed5d��Zed5d��Z ed5d��Z!ed5d��Z"ed5d ��Z#ed5d!��Z$ed5d"��Z%ed5d#��Z&ed5d$��Z'ed5d%��Z(ed5d&��Z)d6d'�Z*d6d(�Z+d6d)�Z,d6d*�Z-d7d+�Z.d7d,�Z/d7d-�Z0d7d.�Z1y)8�PlatformDirsABCz-Abstract base class for platform directories.Nc�n�||_||_	||_	||_	||_	||_||_y)aY
        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)�appname�	appauthor�version�roaming�	multipath�opinion�
ensure_exists)�selfr
rrrrrrs        �?/opt/hc_python/lib/python3.12/site-packages/platformdirs/api.py�__init__zPlatformDirsABC.__init__sW��,���"���	����	����	�#���	����*���	�c�&�t|dd�}|jrB|j|j�|jr|j|j�t	j
j|dg|���}|j|�|S)N�r)�listr
�appendr�os�path�join�_optionally_create_directory)r�base�paramsrs    r�_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_versionQsm���d�1�2�h����<�<��M�M�$�,�,�'��|�|��
�
�d�l�l�+��w�w�|�|�D��G�-�f�-���)�)�$�/��rc�V�|jrt|�jdd��yy)NT)�parents�exist_ok)rr�mkdir�rrs  rrz,PlatformDirsABC._optionally_create_directory[s'�������J���T�D��9�rc�t�|jr"|jtj�d}t	|�S)Nr)r�splitr�pathsepr)r�	directorys  r� _first_item_as_path_if_multipathz0PlatformDirsABC._first_item_as_path_if_multipath_s*���>�>�!����
�
�3�A�6�I��I��rc��y)z(:return: data directory tied to the userN��rs r�
user_data_dirzPlatformDirsABC.user_data_dire��rc��y)z':return: data directory shared by usersNr.r/s r�
site_data_dirzPlatformDirsABC.site_data_dirjr1rc��y)z*:return: config directory tied to the userNr.r/s r�user_config_dirzPlatformDirsABC.user_config_diror1rc��y)z-:return: config directory shared by the usersNr.r/s r�site_config_dirzPlatformDirsABC.site_config_dirtr1rc��y)z):return: cache directory tied to the userNr.r/s r�user_cache_dirzPlatformDirsABC.user_cache_diryr1rc��y)z(:return: cache directory shared by usersNr.r/s r�site_cache_dirzPlatformDirsABC.site_cache_dir~r1rc��y)z):return: state directory tied to the userNr.r/s r�user_state_dirzPlatformDirsABC.user_state_dir�r1rc��y)z':return: log directory tied to the userNr.r/s r�user_log_dirzPlatformDirsABC.user_log_dir�r1rc��y)z-:return: documents directory tied to the userNr.r/s r�user_documents_dirz"PlatformDirsABC.user_documents_dir�r1rc��y)z-:return: downloads directory tied to the userNr.r/s r�user_downloads_dirz"PlatformDirsABC.user_downloads_dir�r1rc��y)z,:return: pictures directory tied to the userNr.r/s r�user_pictures_dirz!PlatformDirsABC.user_pictures_dir�r1rc��y)z*:return: videos directory tied to the userNr.r/s r�user_videos_dirzPlatformDirsABC.user_videos_dir�r1rc��y)z):return: music directory tied to the userNr.r/s r�user_music_dirzPlatformDirsABC.user_music_dir�r1rc��y)z+:return: desktop directory tied to the userNr.r/s r�user_desktop_dirz PlatformDirsABC.user_desktop_dir�r1rc��y)z+:return: runtime directory tied to the userNr.r/s r�user_runtime_dirz PlatformDirsABC.user_runtime_dir�r1rc��y)z*:return: runtime directory shared by usersNr.r/s r�site_runtime_dirz PlatformDirsABC.site_runtime_dir�r1rc�,�t|j�S)z#:return: data path tied to the user)rr0r/s r�user_data_pathzPlatformDirsABC.user_data_path�����D�&�&�'�'rc�,�t|j�S)z":return: data path shared by users)rr3r/s r�site_data_pathzPlatformDirsABC.site_data_path�rRrc�,�t|j�S)z%:return: config path tied to the user)rr5r/s r�user_config_pathz PlatformDirsABC.user_config_path�����D�(�(�)�)rc�,�t|j�S)z(:return: config path shared by the users)rr7r/s r�site_config_pathz PlatformDirsABC.site_config_path�rWrc�,�t|j�S)z$:return: cache path tied to the user)rr9r/s r�user_cache_pathzPlatformDirsABC.user_cache_path�����D�'�'�(�(rc�,�t|j�S)z#:return: cache path shared by users)rr;r/s r�site_cache_pathzPlatformDirsABC.site_cache_path�r\rc�,�t|j�S)z$:return: state path tied to the user)rr=r/s r�user_state_pathzPlatformDirsABC.user_state_path�r\rc�,�t|j�S)z":return: log path tied to the user)rr?r/s r�
user_log_pathzPlatformDirsABC.user_log_path�s���D�%�%�&�&rc�,�t|j�S)z*:return: documents a path tied to the user)rrAr/s r�user_documents_pathz#PlatformDirsABC.user_documents_path�����D�+�+�,�,rc�,�t|j�S)z(:return: downloads path tied to the user)rrCr/s r�user_downloads_pathz#PlatformDirsABC.user_downloads_path�rerc�,�t|j�S)z':return: pictures path tied to the user)rrEr/s r�user_pictures_pathz"PlatformDirsABC.user_pictures_path�s���D�*�*�+�+rc�,�t|j�S)z%:return: videos path tied to the user)rrGr/s r�user_videos_pathz PlatformDirsABC.user_videos_path�rWrc�,�t|j�S)z$:return: music path tied to the user)rrIr/s r�user_music_pathzPlatformDirsABC.user_music_path�r\rc�,�t|j�S)z&:return: desktop path tied to the user)rrKr/s r�user_desktop_pathz!PlatformDirsABC.user_desktop_path�����D�)�)�*�*rc�,�t|j�S)z&:return: runtime path tied to the user)rrMr/s r�user_runtime_pathz!PlatformDirsABC.user_runtime_path�rprc�,�t|j�S)z%:return: runtime path shared by users)rrOr/s r�site_runtime_pathz!PlatformDirsABC.site_runtime_pathrprc#�DK�|j��|j��y�w)z4:yield: all user and site configuration directories.N)r5r7r/s r�iter_config_dirsz PlatformDirsABC.iter_config_dirss�����"�"�"��"�"�"��� c#�DK�|j��|j��y�w)z+:yield: all user and site data directories.N)r0r3r/s r�iter_data_dirszPlatformDirsABC.iter_data_dirs
s����� � � �� � � �rwc#�DK�|j��|j��y�w)z,:yield: all user and site cache directories.N)r9r;r/s r�iter_cache_dirszPlatformDirsABC.iter_cache_dirss�����!�!�!��!�!�!�rwc#�DK�|j��|j��y�w)z.:yield: all user and site runtime directories.N)rMrOr/s r�iter_runtime_dirsz!PlatformDirsABC.iter_runtime_dirss�����#�#�#��#�#�#�rwc#�PK�|j�D]}t|����y�w)z.:yield: all user and site configuration paths.N)rvrr's  r�iter_config_pathsz!PlatformDirsABC.iter_config_pathss#�����)�)�+�D��t�*��,���$&c#�PK�|j�D]}t|����y�w)z%:yield: all user and site data paths.N)ryrr's  r�iter_data_pathszPlatformDirsABC.iter_data_pathss#�����'�'�)�D��t�*��*�r�c#�PK�|j�D]}t|����y�w)z&:yield: all user and site cache paths.N)r{rr's  r�iter_cache_pathsz PlatformDirsABC.iter_cache_paths#s#�����(�(�*�D��t�*��+�r�c#�PK�|j�D]}t|����y�w)z(:yield: all user and site runtime paths.N)r}rr's  r�iter_runtime_pathsz"PlatformDirsABC.iter_runtime_paths(s#�����*�*�,�D��t�*��-�r�)NNNFFTF)r
�
str | Nonerzstr | Literal[False] | Nonerr�r�boolrr�rr�rr��return�None)r �strr�r�)rr�r�r�)r+r�r�r)r�r�)r�r)r�z
Iterator[str])r�zIterator[Path])2�__name__�
__module__�__qualname__�__doc__rr"rr,�propertyrr0r3r5r7r9r;r=r?rArCrErGrIrKrMrOrQrTrVrYr[r^r`rbrdrgrirkrmrorrrtrvryr{r}rr�r�r�r.rrrrs���7�#�15�"����#�=��=�/�=��	=�
�=��
=��=��=�
�=�~�:����7���7���6���6���9���9���<���<���8���8���7���7���8���8���6���6���<���<���<���<���;���;���9���9���8���8���:���:���:���:���9���9��(��(��(��(��*��*��*��*��)��)��)��)��)��)��'��'��-��-��-��-��,��,��*��*��)��)��+��+��+��+��+��+�#�
!�
"�
$�
�
�
�
rr)r��
__future__rr�abcrr�pathlibr�typingr�collections.abcrr	rr.rr�<module>r�s.���"�	�#�� ��(��\�c�\r

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic