Return whether other_path is the same or not as this file (as returned by os.path.samefile()).
>>> p = Path('spam') >>> q = Path('eggs') >>> p.samefile(q) False >>> p.samefile('spam') True
pathlib/Path.samefile
Path.samefile