mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
This commit is contained in:
parent
d3f61a2de6
commit
ae882f7984
11 changed files with 57 additions and 4 deletions
|
@ -249,7 +249,6 @@ def islink(path):
|
|||
|
||||
|
||||
# Does a path exist?
|
||||
# This is false for dangling symbolic links.
|
||||
|
||||
def exists(path):
|
||||
"""Test whether a path exists"""
|
||||
|
@ -259,6 +258,8 @@ def exists(path):
|
|||
return False
|
||||
return True
|
||||
|
||||
lexists = exists
|
||||
|
||||
|
||||
# Is a path a dos directory?
|
||||
# This follows symbolic links, so both islink() and isdir() can be true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue