diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-07-29 19:50:37 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-07-29 19:50:37 +0000 |
commit | 9964fdb466d7338c37e30b302d42bb0df697d234 (patch) | |
tree | fe33e81d90b0be34df204da0a2f8fee1cca7abfd /Doc/lib/libposixpath.tex | |
parent | 2fde3bda8c54ab475958f0b49b1846a6cf3d76ba (diff) | |
download | cpython-git-9964fdb466d7338c37e30b302d42bb0df697d234.tar.gz |
[Patch #1068277] Clarify that os.path.exists() can return False depending on permissions. Fred approved committing this patch in December 2004!
Diffstat (limited to 'Doc/lib/libposixpath.tex')
-rw-r--r-- | Doc/lib/libposixpath.tex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex index 9f0de1f14f..b9cdea1c58 100644 --- a/Doc/lib/libposixpath.tex +++ b/Doc/lib/libposixpath.tex @@ -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} |