check file exists
Michael Hudson
mwh21 at cam.ac.uk
Mon Jul 31 18:56:44 EDT 2000
Moshe Zadka <moshez at math.huji.ac.il> writes:
> On Mon, 31 Jul 2000, Randy Heiland wrote:
>
> > How does one test for whether or not a (Unix) file exists?
>
> os.path.exists()
Hmm, seven answers in about ten minutes (from glancing at headers).
Not bad...
Cheers,
M.
--
58. Fools ignore complexity. Pragmatists suffer it. Some can avoid
it. Geniuses remove it.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list
mailing list