Commit 791f7d47 authored by Jack Jansen's avatar Jack Jansen

Added ismount().

Fixes #661762, bugfix candidate.
parent 2d0909b9
...@@ -84,6 +84,11 @@ def splitdrive(p): ...@@ -84,6 +84,11 @@ def splitdrive(p):
def dirname(s): return split(s)[0] def dirname(s): return split(s)[0]
def basename(s): return split(s)[1] 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): def isdir(s):
"""Return true if the pathname refers to an existing directory.""" """Return true if the pathname refers to an existing directory."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment