From ca99c2ce75ec3b64fa483e800c6739a7851b468d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 19 Jan 1998 22:25:59 +0000 Subject: Fix to ismount(). Can't remember who told me this. --- Lib/ntpath.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 0d7ef65..324ff2e 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -223,8 +223,9 @@ def samestat(s1, s2): # XXX This degenerates in: 'is this the root?' on DOS def ismount(path): - """Test whether a path is a mount point""" - return isabs(splitdrive(path)[1]) + """Test whether a path is a mount point (defined as root of drive)""" + p = splitdrive(path)[1] + return len(p)==1 and p[0] in '/\\' # Directory tree walk. -- cgit v0.12