Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.

This commit is contained in:
Johannes Gijsbers 2004-08-30 10:19:56 +00:00
parent d3f61a2de6
commit ae882f7984
11 changed files with 57 additions and 4 deletions

View file

@ -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