.K۷ j d dl Z d dlZd dlmZ eee j f Zd ZdededefdZ dedefd Z
dS )
N)Unionc p t j | }t j |d dS )z1Ensure that the parent directory of `path` existsT)exist_okN)ospathdirnamemakedirs)r r s p/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_path.pyensure_directoryr s0 good##GK$'''''' p1p2returnc 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<<8B<<''r filenamec t j dk rt j | n| }t j t j t j | S )z2Normalize a file/dir name for comparison purposes.cygwin)sysplatformr r abspathnormcaserealpathr )r files r
r r ! s^ ),(@(@27??8$$$hD
7BG,,RW-=-=d-C-CDDEEEr )r r typingr strPathLike_Pathr boolr r r r