.. module:: os.path
:synopsis: Operations on pathnames.
-**Source code:** :source:`Lib/posixpath.py` (for POSIX) and
+**Source code:** :source:`Lib/genericpath.py`, :source:`Lib/posixpath.py` (for POSIX) and
:source:`Lib/ntpath.py` (for Windows).
.. index:: single: path; operations
if *paths* is empty. Unlike :func:`commonprefix`, this returns a
valid path.
- .. availability:: Unix, Windows.
-
.. versionadded:: 3.5
.. versionchanged:: 3.6
*start* defaults to :data:`os.curdir`.
- .. availability:: Unix, Windows.
-
.. versionchanged:: 3.6
Accepts a :term:`path-like object`.
This is determined by the device number and i-node number and raises an
exception if an :func:`os.stat` call on either pathname fails.
- .. availability:: Unix, Windows.
-
.. versionchanged:: 3.2
Added Windows support.
Return ``True`` if the file descriptors *fp1* and *fp2* refer to the same file.
- .. availability:: Unix, Windows.
-
.. versionchanged:: 3.2
Added Windows support.
:func:`os.lstat`, or :func:`os.stat`. This function implements the
underlying comparison used by :func:`samefile` and :func:`sameopenfile`.
- .. availability:: Unix, Windows.
-
.. versionchanged:: 3.4
Added Windows support.