a0bi p S SK r S SKrS SKJr \\\ R
4 rS rS\S\S\4S jr S\S\4S jr
g)
N)Unionc l [ R R U 5 n[ R " USS9 g)z1Ensure that the parent directory of `path` existsT)exist_okN)ospathdirnamemakedirs)r r s ډ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/setuptools/_path.pyensure_directoryr s" ggood#GKK$' p1p2returnc 0 [ U 5 [ U5 :H $ )aY 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 [ R S:X a [ R R U 5 OU n[ R R [ R R
[ R R U5 5 5 $ )z2Normalize a file/dir name for comparison purposes.cygwin)sysplatformr r abspathnormcaserealpathr )r files r
r r ! sV ),(@277??8$hD
77BGG,,RWW-=-=d-CDEEr )r r typingr strPathLike_Pathr boolr r r r