'return True if \'other\' references the same file as \'self\'.'

def samefile(self, other):

    other = fspath(other)
    if (not isabs(other)):
        other = abspath(other)
    if (self == other):
        return True
    if iswin32:
        return False
    return py.error.checked_call(os.path.samefile, self.strpath, other)
