diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-02-22 21:31:26 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-02-22 21:31:26 (GMT) |
commit | 928924d1a1c9603a576cfefa747df762381d3c7b (patch) | |
tree | 002a69bce9e2d5987d35e3c065eea95e9c46192f /Doc/library | |
parent | 237fda2984f1e5032936895ad95089abc4a88473 (diff) | |
download | cpython-928924d1a1c9603a576cfefa747df762381d3c7b.zip cpython-928924d1a1c9603a576cfefa747df762381d3c7b.tar.gz cpython-928924d1a1c9603a576cfefa747df762381d3c7b.tar.bz2 |
whatsnew: os.path.ismount recognizes volumes mounted below root.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/os.path.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index b1ad214..28e4611 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -194,10 +194,16 @@ the :mod:`glob` module.) .. function:: ismount(path) Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a file - system where a different file system has been mounted. The function checks + system where a different file system has been mounted. On POSIX, the function checks whether *path*'s parent, :file:`path/..`, is on a different device than *path*, or whether :file:`path/..` and *path* point to the same i-node on the same device --- this should detect mount points for all Unix and POSIX variants. + On Windows, a drive letter root and a share UNC are always mount + points, and for any other path ``GetVolumePathName`` is called to see if it + is different from the input path. + + .. versionadded:: 3.4 + Support for detecting non-root mount points on Windows. .. function:: join(path1[, path2[, ...]]) |