File: //opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/__pycache__/_path.cpython-311.pyc
�
�܋f� � � � d dl Z d dlZd dlmZ ej dk reee j e f Zneee j f Zd� Zdedede fd�Z
d edefd
�ZdS )� N)�Union)� � c �p � t j � | � � }t j |d�� � dS )z1Ensure that the parent directory of `path` existsT)�exist_okN)�os�path�dirname�makedirs)r r
s �G/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/_path.py�ensure_directoryr
s0 � ��g�o�o�d�#�#�G��K��$�'�'�'�'�'�'� �p1�p2�returnc �B � t | � � t |� � k S )a� Differs from os.path.samefile because it does not require paths to exist.
Purely string based (no comparison between i-nodes).
>>> same_path("a/b", "./a/b")
True
>>> same_path("a/b", "a/./b")
True
>>> same_path("a/b", "././a/b")
True
>>> same_path("a/b", "./a/b/c/..")
True
>>> same_path("a/b", "../a/b/c")
False
>>> same_path("a", "a/b")
False
)�normpath)r r s r � same_pathr s � � �B�<�<�8�B�<�<�'�'r �filenamec � � t j dk rt j � | � � n| }t j � t j � t j � |� � � � � � S )z2Normalize a file/dir name for comparison purposes.�cygwin)�sys�platformr r �abspath�normcase�realpathr )r �files r r r $ s^ � � ),���(@�(@�2�7�?�?�8�$�$�$�h�D�
�7���B�G�,�,�R�W�-=�-=�d�-C�-C�D�D�E�E�Er )r r �typingr �version_info�str�PathLike�StrPathr
�boolr r � r r �<module>r% s� �� � � � �
�
�
�
� � � � � � ���v����C���S�)�)�*�G�G��C���$�%�G�(� (� (�(�'� (�w� (�4� (� (� (� (�&F�w� F�3� F� F� F� F� F� Fr