Hacked By AnonymousFox

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

�

�܋f���T�dZddlmZddlZddlZddlmZGd�de��ZdgZ	dS)zmacOS.�)�annotationsN�)�PlatformDirsABCc��eZdZdZedd���Zedd���Zedd���Zedd���Zedd���Z	edd	���Z
edd
���Zedd���Zedd���Z
edd
���Zedd���Zedd���Zedd���Zedd���Zedd���Zedd���ZdS)�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>`.
    �return�strc�f�|�tj�d����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 �c/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/platformdirs/macos.py�
user_data_dirzMacOS.user_data_dirs)���0�0���1C�1C�Dc�1d�1d�e�e�e�c� �tj�d��}|r|�d��gng}|�|�d����|jrtj�|��S|dS)aA
        :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_dirs����j�+�+�O�<�<��R]�e�T�6�6�7L�M�M�N�N�ce�	�����:�:�;Y�Z�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_dir.r&rc�f�|�tj�d����S)zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesrrs r�user_cache_dirzMacOS.user_cache_dir3s)���0�0���1C�1C�DV�1W�1W�X�X�Xrc� �tj�d��}|r|�d��gng}|�|�d����|jrtj�|��S|dS)a0
        :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_dir8s����j�+�+�O�<�<��Va�i�T�6�6�7P�Q�Q�R�R�gi�	�����:�:�;L�M�M�N�N�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_dirIr&rc�f�|�tj�d����S)zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsrrs r�user_log_dirzMacOS.user_log_dirNs)���0�0���1C�1C�DT�1U�1U�V�V�Vrc�@�tj�d��S)zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents�r
rrrs r�user_documents_dirzMacOS.user_documents_dirS����w�!�!�-�0�0�0rc�@�tj�d��S)zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/Downloadsr2rs r�user_downloads_dirzMacOS.user_downloads_dirXr4rc�@�tj�d��S)zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z
~/Picturesr2rs r�user_pictures_dirzMacOS.user_pictures_dir]s���w�!�!�,�/�/�/rc�@�tj�d��S)z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/Moviesr2rs r�user_videos_dirzMacOS.user_videos_dirbs���w�!�!�*�-�-�-rc�@�tj�d��S)z;:return: music directory tied to the user, e.g. ``~/Music``z~/Musicr2rs r�user_music_dirzMacOS.user_music_dirgs���w�!�!�)�,�,�,rc�@�tj�d��S)z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/Desktopr2rs r�user_desktop_dirzMacOS.user_desktop_dirls���w�!�!�+�.�.�.rc�f�|�tj�d����S)zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsrrs r�user_runtime_dirzMacOS.user_runtime_dirqs)���0�0���1C�1C�De�1f�1f�g�g�grc��|jS)zF:return: runtime directory shared by users, same as `user_runtime_dir`)r@rs r�site_runtime_dirzMacOS.site_runtime_dirvs
���$�$rN)rr	)�__name__�
__module__�__qualname__�__doc__�propertyrr"r%r(r*r,r.r0r3r6r8r:r<r>r@rB�rrrr
s.���������f�f�f��X�f������X�� �"�"�"��X�"��"�"�"��X�"��Y�Y�Y��X�Y������X�� �"�"�"��X�"��W�W�W��X�W��1�1�1��X�1��1�1�1��X�1��0�0�0��X�0��.�.�.��X�.��-�-�-��X�-��/�/�/��X�/��h�h�h��X�h��%�%�%��X�%�%�%rr)
rF�
__future__r�os.pathr
r�apirr�__all__rHrr�<module>rMs�����"�"�"�"�"�"�����
�
�
�
� � � � � � �o%�o%�o%�o%�o%�O�o%�o%�o%�f����r

Hacked By AnonymousFox1.0, Coded By AnonymousFox