From a21ddb72cd77b74cdaff42c4a32a8b6991aa84de Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 2 Feb 2003 19:23:13 +0000 Subject: [PATCH] Backport: revision 1.44 date: 2003/01/15 22:45:48; author: jackjansen; state: Exp; lines: +5 -0 Added ismount(). Fixes #661762, bugfix candidate. --- Lib/macpath.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/macpath.py b/Lib/macpath.py index 88caf82cbf5a..f098310b2af9 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -93,6 +93,11 @@ def splitdrive(p): def dirname(s): return split(s)[0] def basename(s): return split(s)[1] +def ismount(s): + if not isabs(s): + return False + components = split(s) + return len(components) == 2 and components[1] == '' def isdir(s): """Return true if the pathname refers to an existing directory.""" -- 2.47.3