Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
791f7d47
Commit
791f7d47
authored
Jan 15, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ismount().
Fixes #661762, bugfix candidate.
parent
2d0909b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Lib/macpath.py
Lib/macpath.py
+5
-0
No files found.
Lib/macpath.py
View file @
791f7d47
...
...
@@ -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."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment