PyDocs

Nav

File and Directory Access

samefile

os.path

function (source)
  • samefile(path1, path2, /)
Test whether two pathnames reference the same actual file or directory

This is determined by the device number and i-node number and
raises an exception if an os.stat() call on either pathname fails.
Changed in 3.2, 3.4, 3.6
  • 3.2: Added Windows support.
  • 3.4: Windows now uses the same implementation as all other platforms.
  • 3.6: Accepts a path-like object.
0 Examples
No examples for os.path/samefile.
See Also
No see-alsos for os.path/samefile
0 Notes
No notes for samefile