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/2004-November/049938.html below:

[Python-Dev] os.access versus os.exist

[Python-Dev] os.access versus os.exist [Python-Dev] os.access versus os.existRobert Brewer fumanchu at amor.org
Mon Nov 15 23:16:13 CET 2004
Martin v. Löwis wrote:
> Robert Brewer wrote:
> > It would be awfully nice (on posix platforms, for my 
> > use-case) to find out whether a file is inaccessible
> > due to permission restrictions, or due to non-existence.
> 
> That's easy enough: just check the exception you get when you try
> opening the file.

Brilliant! I'll do that. I didn't think of open() because I don't need to open it--just see if it's there.

/*bonk* self


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org
More information about the Python-Dev mailing list

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