We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb53645 commit b24bf6bCopy full SHA for b24bf6b
Lib/posixpath.py
@@ -188,7 +188,9 @@ def dirname(p):
188
# (Does this work for all UNIXes? Is it even guaranteed to work by Posix?)
189
190
def ismount(path):
191
- """Test whether a path is a mount point"""
+ """Test whether a path is a mount point. Does not work reliably
192
+ with bind mounts on the same filesystems, has false positives for
193
+ btrfs subvolumes that aren't a mountpoint."""
194
try:
195
s1 = os.lstat(path)
196
except (OSError, ValueError):
0 commit comments