Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32ebd85

Browse files
bpo-29707: Document that os.path.ismount() is not able to reliable detect bind mounts. (GH-11238)
1 parent efcf82f commit 32ebd85

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/library/os.path.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,11 @@ the :mod:`glob` module.)
283283

284284
Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a
285285
file system where a different file system has been mounted. On POSIX, the
286-
function checks whether *path*'s parent, :file:`path/..`, is on a different
287-
device than *path*, or whether :file:`path/..` and *path* point to the same
286+
function checks whether *path*'s parent, :file:`{path}/..`, is on a different
287+
device than *path*, or whether :file:`{path}/..` and *path* point to the same
288288
i-node on the same device --- this should detect mount points for all Unix
289-
and POSIX variants. On Windows, a drive letter root and a share UNC are
289+
and POSIX variants. It is not able to reliably detect bind mounts on the
290+
same filesystem. On Windows, a drive letter root and a share UNC are
290291
always mount points, and for any other path ``GetVolumePathName`` is called
291292
to see if it is different from the input path.
292293

0 commit comments

Comments
 (0)