[Patch #1068277] Clarify that os.path.exists() can return False depending on permissions. Fred approved committing this patch in December 2004!

This commit is contained in:
Andrew M. Kuchling 2006-07-29 19:50:37 +00:00
parent 2fde3bda8c
commit 9964fdb466
1 changed files with 5 additions and 2 deletions

View File

@ -42,8 +42,11 @@ half of the pair returned by \code{split(\var{path})}.
\end{funcdesc}
\begin{funcdesc}{exists}{path}
Return \code{True} if \var{path} refers to an existing path.
Returns \code{False} for broken symbolic links.
Return \code{True} if \var{path} refers to an existing path. Returns
\code{False} for broken symbolic links. On some platforms, this
function may return \code{False} if permission is not granted to
execute \function{os.stat()} on the requested file, even if the
\var{path} physically exists.
\end{funcdesc}
\begin{funcdesc}{lexists}{path}