A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025511.html below:

[Python-Dev] large file support

[Python-Dev] large file support [Python-Dev] large file supportGuido van Rossum guido@python.org
Mon, 17 Jun 2002 23:25:34 -0400
> >>    def exists(path):
> >>       return(os.access(path, os.F_OK))
> >
> >NO, NO, NOOOOOOO!
> >
> >access() does something different.  It checks permissions as they
> 
> F_OK checks to see if the file exists.

It is my understanding that if some directory along the path to the
file is accessible to root but not to the effective user, access() for
a file in that directory might return 0 while exists would return 1,
on some operating systems.

There's only one rule for access(): only use it if you have a set-uid
mission.

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





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4