HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/setuptools/__pycache__/_path.cpython-310.pyc
o

�N�g �@s^ddlZddlZddlmZeeejfZdd�Zdededefdd	�Z	d
edefdd�Z
dS)
�N)�UnioncCstj�|�}tj|dd�dS)z1Ensure that the parent directory of `path` existsT)�exist_okN)�os�path�dirname�makedirs)rr�r�D/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/_path.py�ensure_directorysr
�p1�p2�returncCst|�t|�kS)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)rrrrr	�	same_pathsr�filenamecCs6tjdkrtj�|�n|}tj�tj�tj�|���S)z2Normalize a file/dir name for comparison purposes.�cygwin)�sys�platformrr�abspath�normcase�realpathr)r�filerrr	r!sr)rr�typingr�str�PathLikeZ_Pathr
�boolrrrrrr	�<module>s