Files
2017-05-06 05:25:56 -04:00

12 lines
353 B
Python

# From 3.2 shlex.py
def _samefile(os, src, dst):
if hasattr(os.path, 'samefile'):
try:
return os.path.samefile(src, dst)
except OSError:
return False
# All other platforms: check for same pathname.
return (os.path.normcase(os.path.abspath(src)) ==
os.path.normcase(os.path.abspath(dst)))