Say I have 2 paths:

```
derp.py
/lol/lel/doge/derp.py

```

How do I check if both paths refer to the same file? I've seen two ways to do it, but are there any disadvantages to either.

```
os.path.samefile("derp.py", "/lol/lel/doge/derp.py")
os.path.abspath("derp.py") == os.path.abspath("/lel/lol/doge/derp.py")

```

I don't particularly care about following symlinks or if one of the files doesn't exist.