ef jddlZddlZddlmZeeejfZdZdededefdZ dedefd Z dS) N)Unioncptj|}tj|ddS)z1Ensure that the parent directory of `path` existsT)exist_okN)ospathdirnamemakedirs)rrs p/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_path.pyensure_directoryr s0good##GK$''''''p1p2returncBt|t|kS)aDiffers 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 rs r same_pathrs B<<8B<< ''r filenamectjdkrtj|n|}tjtjtj|S)z2Normalize a file/dir name for comparison purposes.cygwin)sysplatformrrabspathnormcaserealpathr)rfiles r rr!s^), (@(@27??8 $ $ $hD 7  BG,,RW-=-=d-C-CDD E EEr ) rrtypingrstrPathLike_Pathr boolrrr r r"s  c2;((( (%(U(t((((&FuFFFFFFFr