method: path.extpy.samefile

*Not documented*
    def samefile(self, other):

origin: path.extpy

where:

function source:

def samefile(self, other):
    otherobj = other.resolve()
    try:
        x = inspect.getfile(otherobj)
    except TypeError:
        return False
    if x.endswith('.pyc'):
        x = x[:-1]
    if str(self.root) == x:
        return True