ID EN
OS Path

samestat

Python 3.11

Return True if the stat tuples stat1 and stat2 refer to the same file. These structures may have been returned by os.fstat(), os.lstat(), or os.stat(). This function implements the underlying comparison used by samefile() and sameopenfile().

Syntax

PYTHON
os.path.samestat(stat1, stat2)

See Also

os.fstat() os.lstat() os.stat() samefile() sameopenfile() Availability path-like object