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

@ -43,6 +43,15 @@ half of the pair returned by \code{split(\var{path})}.
\begin{funcdesc}{exists}{path}
Return \code{True} if \var{path} refers to an existing path.
Returns \code{False} for broken symbolic links.
\end{funcdesc}
\begin{funcdesc}{lexists}{path}
Return \code{True} if \var{path} refers to an existing path.
Returns \code{True} for broken symbolic links.
Equivalent to \function{exists()} on platforms lacking
\function{os.lstat()}.
\versionadded{2.4}
\end{funcdesc}
\begin{funcdesc}{expanduser}{path}