관리-도구
편집 파일: api.cpython-311.pyc
� �Dg$# � �v � d Z ddlmZ ddlZddlmZmZ ddlmZ ddl m Z e rddl mZmZ G d� d e� � Z dS ) z Base API.� )�annotationsN)�ABC�abstractmethod)�Path)� TYPE_CHECKING)�Iterator�Literalc �z � e Zd ZdZ dBdCd�ZdDd�ZdEd�ZeedFd�� � � � Z eedFd�� � � � Z eedFd�� � � � ZeedFd�� � � � ZeedFd�� � � � Z eedFd�� � � � ZeedFd�� � � � ZeedFd�� � � � ZeedFd�� � � � ZeedFd �� � � � ZeedFd!�� � � � ZeedFd"�� � � � ZeedFd#�� � � � ZeedFd$�� � � � ZeedFd%�� � � � ZeedFd&�� � � � ZedGd(�� � ZedGd)�� � ZedGd*�� � ZedGd+�� � ZedGd,�� � ZedGd-�� � ZedGd.�� � ZedGd/�� � Z edGd0�� � Z!edGd1�� � Z"edGd2�� � Z#edGd3�� � Z$edGd4�� � Z%edGd5�� � Z&edGd6�� � Z'edGd7�� � Z(dHd9�Z)dHd:�Z*dHd;�Z+dHd<�Z,dId>�Z-dId?�Z.dId@�Z/dIdA�Z0dS )J�PlatformDirsABCz-Abstract base class for platform directories.NFT�appname� str | None� appauthor�str | None | Literal[False]�version�roaming�bool� multipath�opinion� ensure_exists�return�Nonec �p � || _ || _ || _ || _ || _ || _ || _ dS )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)r r r r r r r )�selfr r r r r r r s �|/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/platformdirs/api.py�__init__zPlatformDirsABC.__init__ s\ � �, ���"��� � ��� � ��� � #��� � ���*��� � � �base�strc � � t |dd � � � }| j r;|� | j � � | j r|� | j � � t j j |d g|�R � }| � |� � |S )N� r )�listr �appendr �os�path�join�_optionally_create_directory)r r �paramsr$ s r �_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_versionP s� � ��d�1�2�2�h�����<� ,��M�M�$�,�'�'�'��|� ,�� � �d�l�+�+�+��w�|�D��G�-�f�-�-�-���)�)�$�/�/�/��r r$ c �` � | j r&t |� � � dd�� � d S d S )NT)�parents�exist_ok)r r �mkdir�r r$ s r r&