Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pip/_vendor/platformdirs/__pycache__/api.cpython-312.pyc

�

4Μg$#��n�dZddlmZddlZddlmZmZddlmZddl	m
Z
e
rddl	mZmZGd�d	e�Z
y)
z	Base API.�)�annotationsN)�ABC�abstractmethod)�Path)�
TYPE_CHECKING)�Iterator�Literalc�v�eZdZdZ							d.															d/d�Zd0d�Zd1d�Zeed2d���Z	eed2d���Z
eed2d���Zeed2d	���Zeed2d
���Z
eed2d���Zeed2d���Zeed2d
���Zeed2d���Zeed2d���Zeed2d���Zeed2d���Zeed2d���Zeed2d���Zeed2d���Zeed2d���Zed3d��Zed3d��Zed3d��Zed3d��Zed3d��Zed3d��Zed3d��Zed3d��Z ed3d��Z!ed3d��Z"ed3d ��Z#ed3d!��Z$ed3d"��Z%ed3d#��Z&ed3d$��Z'ed3d%��Z(d4d&�Z)d4d'�Z*d4d(�Z+d4d)�Z,d5d*�Z-d5d+�Z.d5d,�Z/d5d-�Z0y)6�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        �G/usr/local/lib/python3.12/site-packages/pip/_vendor/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_versionPsm���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_directoryZs'�������J���T�D��9�rc��y)z(:return: data directory tied to the userN��rs r�
user_data_dirzPlatformDirsABC.user_data_dir^��rc��y)z':return: data directory shared by usersNr)r*s r�
site_data_dirzPlatformDirsABC.site_data_dircr,rc��y)z*:return: config directory tied to the userNr)r*s r�user_config_dirzPlatformDirsABC.user_config_dirhr,rc��y)z-:return: config directory shared by the usersNr)r*s r�site_config_dirzPlatformDirsABC.site_config_dirmr,rc��y)z):return: cache directory tied to the userNr)r*s r�user_cache_dirzPlatformDirsABC.user_cache_dirrr,rc��y)z(:return: cache directory shared by usersNr)r*s r�site_cache_dirzPlatformDirsABC.site_cache_dirwr,rc��y)z):return: state directory tied to the userNr)r*s r�user_state_dirzPlatformDirsABC.user_state_dir|r,rc��y)z':return: log directory tied to the userNr)r*s r�user_log_dirzPlatformDirsABC.user_log_dir�r,rc��y)z-:return: documents directory tied to the userNr)r*s r�user_documents_dirz"PlatformDirsABC.user_documents_dir�r,rc��y)z-:return: downloads directory tied to the userNr)r*s r�user_downloads_dirz"PlatformDirsABC.user_downloads_dir�r,rc��y)z,:return: pictures directory tied to the userNr)r*s r�user_pictures_dirz!PlatformDirsABC.user_pictures_dir�r,rc��y)z*:return: videos directory tied to the userNr)r*s r�user_videos_dirzPlatformDirsABC.user_videos_dir�r,rc��y)z):return: music directory tied to the userNr)r*s r�user_music_dirzPlatformDirsABC.user_music_dir�r,rc��y)z+:return: desktop directory tied to the userNr)r*s r�user_desktop_dirz PlatformDirsABC.user_desktop_dir�r,rc��y)z+:return: runtime directory tied to the userNr)r*s r�user_runtime_dirz PlatformDirsABC.user_runtime_dir�r,rc��y)z*:return: runtime directory shared by usersNr)r*s r�site_runtime_dirz PlatformDirsABC.site_runtime_dir�r,rc�,�t|j�S)z#:return: data path tied to the user)rr+r*s r�user_data_pathzPlatformDirsABC.user_data_path�����D�&�&�'�'rc�,�t|j�S)z":return: data path shared by users)rr.r*s r�site_data_pathzPlatformDirsABC.site_data_path�rMrc�,�t|j�S)z%:return: config path tied to the user)rr0r*s r�user_config_pathz PlatformDirsABC.user_config_path�����D�(�(�)�)rc�,�t|j�S)z(:return: config path shared by the users)rr2r*s r�site_config_pathz PlatformDirsABC.site_config_path�rRrc�,�t|j�S)z$:return: cache path tied to the user)rr4r*s r�user_cache_pathzPlatformDirsABC.user_cache_path�����D�'�'�(�(rc�,�t|j�S)z#:return: cache path shared by users)rr6r*s r�site_cache_pathzPlatformDirsABC.site_cache_path�rWrc�,�t|j�S)z$:return: state path tied to the user)rr8r*s r�user_state_pathzPlatformDirsABC.user_state_path�rWrc�,�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)rr<r*s r�user_documents_pathz#PlatformDirsABC.user_documents_path�����D�+�+�,�,rc�,�t|j�S)z(:return: downloads path tied to the user)rr>r*s r�user_downloads_pathz#PlatformDirsABC.user_downloads_path�r`rc�,�t|j�S)z':return: pictures path tied to the user)rr@r*s r�user_pictures_pathz"PlatformDirsABC.user_pictures_path�s���D�*�*�+�+rc�,�t|j�S)z%:return: videos path tied to the user)rrBr*s r�user_videos_pathz PlatformDirsABC.user_videos_path�rRrc�,�t|j�S)z$:return: music path tied to the user)rrDr*s r�user_music_pathzPlatformDirsABC.user_music_path�rWrc�,�t|j�S)z&:return: desktop path tied to the user)rrFr*s r�user_desktop_pathz!PlatformDirsABC.user_desktop_path�����D�)�)�*�*rc�,�t|j�S)z&:return: runtime path tied to the user)rrHr*s r�user_runtime_pathz!PlatformDirsABC.user_runtime_path�rkrc�,�t|j�S)z%:return: runtime path shared by users)rrJr*s r�site_runtime_pathz!PlatformDirsABC.site_runtime_path�rkrc#�DK�|j��|j��y�w)z4:yield: all user and site configuration directories.N)r0r2r*s r�iter_config_dirsz PlatformDirsABC.iter_config_dirs�s�����"�"�"��"�"�"��� c#�DK�|j��|j��y�w)z+:yield: all user and site data directories.N)r+r.r*s r�iter_data_dirszPlatformDirsABC.iter_data_dirss����� � � �� � � �rrc#�DK�|j��|j��y�w)z,:yield: all user and site cache directories.N)r4r6r*s r�iter_cache_dirszPlatformDirsABC.iter_cache_dirss�����!�!�!��!�!�!�rrc#�DK�|j��|j��y�w)z.:yield: all user and site runtime directories.N)rHrJr*s r�iter_runtime_dirsz!PlatformDirsABC.iter_runtime_dirs
s�����#�#�#��#�#�#�rrc#�PK�|j�D]}t|����y�w)z.:yield: all user and site configuration paths.N)rqrr'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)rtrr'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)rvrr's  r�iter_cache_pathsz PlatformDirsABC.iter_cache_pathss#�����(�(�*�D��t�*��+�r{c#�PK�|j�D]}t|����y�w)z(:yield: all user and site runtime paths.N)rxrr's  r�iter_runtime_pathsz"PlatformDirsABC.iter_runtime_paths!s#�����*�*�,�D��t�*��-�r{)NNNFFTF)r
�
str | Nonerzstr | None | Literal[False]rr�r�boolrr�rr�rr��return�None)r �strr�r�)rr�r�r�)r�r�)r�r)r�z
Iterator[str])r�zIterator[Path])1�__name__�
__module__�__qualname__�__doc__rr"r�propertyrr+r.r0r2r4r6r8r:r<r>r@rBrDrFrHrJrLrOrQrTrVrYr[r]r_rbrdrfrhrjrmrorqrtrvrxrzr}rr�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�typingrrr	rr)rr�<module>r�s+���"�	�#�� ��(�V�c�Vr

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists