[Python-Dev] large file support

Guido van Rossum guido@python.org
Mon, 17 Jun 2002 23:02:42 -0400


> How about changing os.path.exists for posix to:
> 
>    def exists(path):
>       return(os.access(path, os.F_OK))

NO, NO, NOOOOOOO!

access() does something different.  It checks permissions as they
would be for the effective user id.  DO NOT USE access() TO CHECK FOR
FILE PERMISSIONS UNLESS YOU HAVE A SET-UID MISSION!

--Guido van Rossum (home page: http://www.python.org/~guido/)