Skip to content

Commit a4aade2

Browse files
bpo-29707: Document that os.path.ismount() is not able to reliable detect bind mounts. (GH-11238)
(cherry picked from commit 32ebd85) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 6d0254b commit a4aade2

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
@@ -277,10 +277,11 @@ the :mod:`glob` module.)
277277

278278
Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a
279279
file system where a different file system has been mounted. On POSIX, the
280-
function checks whether *path*'s parent, :file:`path/..`, is on a different
281-
device than *path*, or whether :file:`path/..` and *path* point to the same
280+
function checks whether *path*'s parent, :file:`{path}/..`, is on a different
281+
device than *path*, or whether :file:`{path}/..` and *path* point to the same
282282
i-node on the same device --- this should detect mount points for all Unix
283-
and POSIX variants. On Windows, a drive letter root and a share UNC are
283+
and POSIX variants. It is not able to reliably detect bind mounts on the
284+
same filesystem. On Windows, a drive letter root and a share UNC are
284285
always mount points, and for any other path ``GetVolumePathName`` is called
285286
to see if it is different from the input path.
286287

0 commit comments

Comments
 (0)