o
    h
                     @  sb   d Z ddlmZ ddlZddlZddlmZ ddlm	Z	 er$ddl
mZ G dd	 d	e	Zd	gZdS )
zmacOS.    )annotationsN)TYPE_CHECKING   )PlatformDirsABC)Pathc                   @  s  e Zd ZdZed*ddZed*ddZed+d	d
Zed*ddZed*ddZ	ed*ddZ
ed*ddZed+ddZed*ddZed*ddZed*ddZed*ddZed*ddZed*dd Zed*d!d"Zed*d#d$Zed*d%d&Zed*d'd(Zd)S ),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                 C     |  tj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self r   Q/var/www/html/venv/lib/python3.10/site-packages/pip/_vendor/platformdirs/macos.pyuser_data_dir      zMacOS.user_data_dirc                 C  J   t jd}|r| dgng }|| d | jr!tj|S |d S )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_listr   r   r   site_data_dir       
zMacOS.site_data_dirr   c                 C     |  | jS )zh:return: data path shared by users. Only return the first item, even if ``multipath`` is set to ``True``) _first_item_as_path_if_multipathr#   r   r   r   r   site_data_path1      zMacOS.site_data_pathc                 C     | j S )zC:return: config directory tied to the user, same as `user_data_dir`r   r   r   r   r   user_config_dir6      zMacOS.user_config_dirc                 C  r)   )zF:return: config directory shared by the users, same as `site_data_dir`)r#   r   r   r   r   site_config_dir;   r,   zMacOS.site_config_dirc                 C  r
   )zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesr   r   r   r   r   user_cache_dir@   r   zMacOS.user_cache_dirc                 C  r   )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``
        r   z/opt/homebrew/var/cachez/Library/Cachesr   r   r    r   r   r   site_cache_dirE   r$   zMacOS.site_cache_dirc                 C  r%   )zi:return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)r&   r/   r   r   r   r   site_cache_pathV   r(   zMacOS.site_cache_pathc                 C  r)   )zB:return: state directory tied to the user, same as `user_data_dir`r*   r   r   r   r   user_state_dir[   r,   zMacOS.user_state_dirc                 C  r
   )zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsr   r   r   r   r   user_log_dir`   r   zMacOS.user_log_dirc                 C     t jdS )zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documentsr   r   r   r   r   r   r   user_documents_dire   r(   zMacOS.user_documents_dirc                 C  r3   )zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/Downloadsr4   r   r   r   r   user_downloads_dirj   r(   zMacOS.user_downloads_dirc                 C  r3   )zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z
~/Picturesr4   r   r   r   r   user_pictures_diro   r(   zMacOS.user_pictures_dirc                 C  r3   )z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/Moviesr4   r   r   r   r   user_videos_dirt   r(   zMacOS.user_videos_dirc                 C  r3   )z;:return: music directory tied to the user, e.g. ``~/Music``z~/Musicr4   r   r   r   r   user_music_diry   r(   zMacOS.user_music_dirc                 C  r3   )z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/Desktopr4   r   r   r   r   user_desktop_dir~   r(   zMacOS.user_desktop_dirc                 C  r
   )zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsr   r   r   r   r   user_runtime_dir   r   zMacOS.user_runtime_dirc                 C  r)   )zF:return: runtime directory shared by users, same as `user_runtime_dir`)r;   r   r   r   r   site_runtime_dir   r,   zMacOS.site_runtime_dirN)r   r	   )r   r   )__name__
__module____qualname____doc__propertyr   r#   r'   r+   r-   r.   r/   r0   r1   r2   r5   r6   r7   r8   r9   r:   r;   r<   r   r   r   r   r      sL    r   )r@   
__future__r   os.pathr   r   typingr   apir   pathlibr   r   __all__r   r   r   r   <module>   s     