]> granicus.if.org Git - python/commitdiff
[Patch #1068277] Clarify that os.path.exists() can return False depending on permissi...
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 29 Jul 2006 19:50:37 +0000 (19:50 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 29 Jul 2006 19:50:37 +0000 (19:50 +0000)
Doc/lib/libposixpath.tex

index 9f0de1f14f594b2afee0d70b20eb8afc32d31dbd..b9cdea1c58a2909fa644011b9db0f262040b6400 100644 (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}