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__/macos.cpython-312.pyc

�

4Μg���L�dZddlmZddlZddlZddlmZGd�de�ZdgZ	y)zmacOS.�)�annotationsN�)�PlatformDirsABCc�0�eZdZdZedd��Zedd��Zedd��Zedd��Zedd��Z	edd��Z
edd��Zedd	��Zedd
��Z
edd��Zedd��Zedd
��Zedd��Zedd��Zedd��Zedd��Zy)�MacOSa�
    Platform directories for the macOS operating system.

    Follows the guidance from
    `Apple documentation <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.
    Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`,
    `version <platformdirs.api.PlatformDirsABC.version>`,
    `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.

    c�^�|jtjjd��S)zb:return: data directory tied to the user, e.g. ``~/Library/Application Support/$appname/$version``z~/Library/Application Support��_append_app_name_and_version�os�path�
expanduser��selfs �I/usr/local/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py�
user_data_dirzMacOS.user_data_dirs%���0�0����1C�1C�Dc�1d�e�e�c��tjjd�}|r|jd�gng}|j	|jd��|j
rtjj|�S|dS)aB
        :return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``.
          If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
          will be under the Homebrew prefix, e.g. ``/opt/homebrew/share/$appname/$version``.
          If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
          the response is a multi-path string separated by ":", e.g.
          ``/opt/homebrew/share/$appname/$version:/Library/Application Support/$appname/$version``
        �
/opt/homebrewz/opt/homebrew/sharez/Library/Application Supportr�	�sys�prefix�
startswithr
�append�	multipathr�pathsep�join�r�is_homebrew�	path_lists   r�
site_data_dirzMacOS.site_data_dirso���j�j�+�+�O�<��R]�T�6�6�7L�M�N�ce�	�����:�:�;Y�Z�[��>�>��:�:�?�?�9�-�-���|�rc��|jS)zC:return: config directory tied to the user, same as `user_data_dir`�rrs r�user_config_dirzMacOS.user_config_dir-����!�!�!rc��|jS)zF:return: config directory shared by the users, same as `site_data_dir`)r rs r�site_config_dirzMacOS.site_config_dir2r$rc�^�|jtjjd��S)zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesr	rs r�user_cache_dirzMacOS.user_cache_dir7s%���0�0����1C�1C�DV�1W�X�Xrc��tjjd�}|r|jd�gng}|j	|jd��|j
rtjj|�S|dS)a1
        :return: cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``.
          If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
          will be under the Homebrew prefix, e.g. ``/opt/homebrew/var/cache/$appname/$version``.
          If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
          the response is a multi-path string separated by ":", e.g.
          ``/opt/homebrew/var/cache/$appname/$version:/Library/Caches/$appname/$version``
        rz/opt/homebrew/var/cachez/Library/Cachesrrrs   r�site_cache_dirzMacOS.site_cache_dir<so���j�j�+�+�O�<��Va�T�6�6�7P�Q�R�gi�	�����:�:�;L�M�N��>�>��:�:�?�?�9�-�-���|�rc��|jS)zB:return: state directory tied to the user, same as `user_data_dir`r"rs r�user_state_dirzMacOS.user_state_dirMr$rc�^�|jtjjd��S)zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsr	rs r�user_log_dirzMacOS.user_log_dirRs%���0�0����1C�1C�DT�1U�V�Vrc�@�tjjd�S)zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents�rrr
rs r�user_documents_dirzMacOS.user_documents_dirW����w�w�!�!�-�0�0rc�@�tjjd�S)zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/Downloadsr0rs r�user_downloads_dirzMacOS.user_downloads_dir\r2rc�@�tjjd�S)zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z
~/Picturesr0rs r�user_pictures_dirzMacOS.user_pictures_diras���w�w�!�!�,�/�/rc�@�tjjd�S)z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/Moviesr0rs r�user_videos_dirzMacOS.user_videos_dirfs���w�w�!�!�*�-�-rc�@�tjjd�S)z;:return: music directory tied to the user, e.g. ``~/Music``z~/Musicr0rs r�user_music_dirzMacOS.user_music_dirks���w�w�!�!�)�,�,rc�@�tjjd�S)z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/Desktopr0rs r�user_desktop_dirzMacOS.user_desktop_dirps���w�w�!�!�+�.�.rc�^�|jtjjd��S)zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsr	rs r�user_runtime_dirzMacOS.user_runtime_dirus%���0�0����1C�1C�De�1f�g�grc��|jS)zF:return: runtime directory shared by users, same as `user_runtime_dir`)r>rs r�site_runtime_dirzMacOS.site_runtime_dirzs���$�$�$rN)�return�str)�__name__�
__module__�__qualname__�__doc__�propertyrr r#r&r(r*r,r.r1r4r6r8r:r<r>r@�rrrrsO��	��f��f����� �"��"��"��"��Y��Y����� �"��"��W��W��1��1��1��1��0��0��.��.��-��-��/��/��h��h��%��%rr)
rF�
__future__r�os.pathrr�apirr�__all__rHrr�<module>rMs/���"��
� �r%�O�r%�l��r

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