[Python-Dev] large file support

Jeremy Hylton jeremy@zope.com
Mon, 17 Jun 2002 16:28:23 -0400

>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

  >> I'd be happiest if os.path.exists() would work regardless of
  >> whether Python supported large files.  I'd be satisifed with an
  >> exception that at least let me know something went wrong.

  GvR> Is there an errno we can test for?  stat() for a non-existent
  GvR> file raises one exception, stat() for a file in a directory you
  GvR> can't read raises a different one; maybe stat of a large file
  GvR> raises something else again?  I think os.path.exists() ought to
  GvR> return True in this case.

On the platform I tried (apparently RH 7.1) it raises EOVERFLOW.  I
can extend posixpath to treat that as "file exists" tomorrow.