def samefile(f1, f2):
 s1 = os.stat(f1)
 s2 = os.stat(f2)
 return samestat(s1, s2)

def samefile ( f1 , f2 ) : s1 = os . stat ( f1 ) s2 = os . stat ( f2 ) return samestat ( s1 , s2 )
check if two paths point to the same actual file on the filesystem .