Path.samefile

bool samefile(Path other) const

Checks if this path refers to the same file as another path.

Parameters

otherThe other Path to compare with.

Returns

true if both paths refer to the same file, false otherwise.