mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
parent
2d0909b9cb
commit
791f7d4783
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue